Houjie
2025-07-24 1bc8f80935add7215fa98de1ab8b375b222a2046
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;
}