Package org.teavm.classlib.java.lang
Class TInteger
java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.lang.TNumber
org.teavm.classlib.java.lang.TInteger
- All Implemented Interfaces:
TSerializable
,TComparable<TInteger>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
bitCount(int i)
static int
compare(int x, int y)
int
static TInteger
static int
divideUnsigned(int dividend, int divisor)
double
boolean
float
static TInteger
getInteger(TString nm)
static TInteger
getInteger(TString nm, int val)
static TInteger
getInteger(TString nm, TInteger val)
int
hashCode()
static int
hashCode(int value)
static int
highestOneBit(int i)
int
intValue()
long
static int
lowestOneBit(int i)
static int
numberOfLeadingZeros(int i)
static int
numberOfTrailingZeros(int i)
static int
static int
static int
remainderUnsigned(int dividend, int divisor)
static int
reverse(int i)
static int
reverseBytes(int i)
static int
rotateLeft(int i, int distance)
static int
rotateRight(int i, int distance)
static int
signum(int i)
static String
toBinaryString(int i)
static String
toHexString(int i)
static String
toOctalString(int i)
toString()
static String
toString(int i)
static String
toString(int i, int radix)
static TInteger
valueOf(int i)
static TInteger
static TInteger
Methods inherited from class org.teavm.classlib.java.lang.TNumber
byteValue, shortValue
-
Field Details
-
SIZE
public static final int SIZE- See Also:
- Constant Field Values
-
MIN_VALUE
public static final int MIN_VALUE- See Also:
- Constant Field Values
-
MAX_VALUE
public static final int MAX_VALUE- See Also:
- Constant Field Values
-
TYPE
-
-
Constructor Details
-
TInteger
public TInteger(int value) -
TInteger
- Throws:
NumberFormatException
-
-
Method Details
-
toString
-
hashCode
public static int hashCode(int value) -
toHexString
-
toOctalString
-
toBinaryString
-
toString
-
parseInt
- Throws:
TNumberFormatException
-
parseInt
- Throws:
TNumberFormatException
-
valueOf
- Throws:
TNumberFormatException
-
valueOf
- Throws:
TNumberFormatException
-
valueOf
-
intValue
public int intValue() -
longValue
public long longValue() -
floatValue
public float floatValue()- Specified by:
floatValue
in classTNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValue
in classTNumber
-
toString
-
hashCode
public int hashCode() -
equals
-
getInteger
-
getInteger
-
getInteger
-
decode
- Throws:
TNumberFormatException
-
compareTo
- Specified by:
compareTo
in interfaceTComparable<TInteger>
-
compare
public static int compare(int x, int y) -
numberOfLeadingZeros
public static int numberOfLeadingZeros(int i) -
numberOfTrailingZeros
public static int numberOfTrailingZeros(int i) -
highestOneBit
public static int highestOneBit(int i) -
lowestOneBit
public static int lowestOneBit(int i) -
bitCount
public static int bitCount(int i) -
rotateLeft
public static int rotateLeft(int i, int distance) -
rotateRight
public static int rotateRight(int i, int distance) -
reverse
public static int reverse(int i) -
reverseBytes
public static int reverseBytes(int i) -
signum
public static int signum(int i) -
divideUnsigned
public static int divideUnsigned(int dividend, int divisor) -
remainderUnsigned
public static int remainderUnsigned(int dividend, int divisor)
-