Houjie
2025-07-24 52a3ff1bce1417b39f6872d8e8cb378e9c2ccc6f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
 * Ponyfill for Java's Integer class.
 */
export default class Integer {
    static MIN_VALUE_32_BITS: number;
    static MAX_VALUE: number;
    static numberOfTrailingZeros(i: number): number;
    static numberOfLeadingZeros(i: number): number;
    static toHexString(i: number): string;
    static toBinaryString(intNumber: number): string;
    static bitCount(i: number): number;
    static truncDivision(dividend: number, divisor: number): number;
    /**
     * Converts A string to an integer.
     * @param s A string to convert into a number.
     * @param radix A value between 2 and 36 that specifies the base of the number in numString. If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal. All other strings are considered decimal.
     */
    static parseInt(num: string, radix?: number): number;
}