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 intbitCount(int i) static intcompare(int x, int y) intstatic intcompareUnsigned(int a, int b) static TIntegerstatic intdivideUnsigned(int dividend, int divisor) doublebooleanfloatstatic TIntegergetInteger(TString nm) static TIntegergetInteger(TString nm, int val) static TIntegergetInteger(TString nm, TInteger val) inthashCode()static inthashCode(int value) static inthighestOneBit(int i) intintValue()longstatic intlowestOneBit(int i) static intnumberOfLeadingZeros(int i) static intnumberOfTrailingZeros(int i) static intparseInt(CharSequence s, int beginIndex, int endIndex, int radix) static intstatic intstatic intremainderUnsigned(int dividend, int divisor) static intreverse(int i) static intreverseBytes(int i) static introtateLeft(int i, int distance) static introtateRight(int i, int distance) static intsignum(int i) static StringtoBinaryString(int i) static StringtoHexString(int i) static StringtoOctalString(int i) toString()static StringtoString(int i) static StringtoString(int i, int radix) static TIntegervalueOf(int i) static TIntegerstatic TIntegerMethods inherited from class org.teavm.classlib.java.lang.TNumber
byteValue, shortValue
-
Field Details
-
SIZE
public static final int SIZE- See Also:
-
BYTES
public static final int BYTES- See Also:
-
MIN_VALUE
public static final int MIN_VALUE- See Also:
-
MAX_VALUE
public static final int MAX_VALUE- See Also:
-
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
public static int parseInt(CharSequence s, int beginIndex, int endIndex, int radix) throws TNumberFormatException - 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:
floatValuein classTNumber
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein classTNumber
-
toString
-
hashCode
public int hashCode() -
equals
-
getInteger
-
getInteger
-
getInteger
-
decode
- Throws:
TNumberFormatException
-
compareTo
- Specified by:
compareToin 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) -
compareUnsigned
public static int compareUnsigned(int a, int b)
-