Package org.teavm.classlib.java.lang
Class TLong
java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.lang.TNumber
org.teavm.classlib.java.lang.TLong
- All Implemented Interfaces:
TSerializable
,TComparable<TLong>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
bitCount
(long i) static int
compare
(long a, long b) int
static int
compareUnsigned
(long a, long b) static TLong
static long
divideUnsigned
(long dividend, long divisor) double
boolean
float
static TLong
static TLong
static TLong
int
hashCode()
static long
highestOneBit
(long i) int
intValue()
long
static long
lowestOneBit
(long i) static int
numberOfLeadingZeros
(long i) static int
numberOfTrailingZeros
(long i) static long
parseLong
(CharSequence s, int beginIndex, int endIndex, int radix) static long
static long
static long
remainderUnsigned
(long dividend, long divisor) static long
reverse
(long i) static long
reverseBytes
(long i) static long
rotateLeft
(long i, int distance) static long
rotateRight
(long i, int distance) static int
signum
(long i) static String
toBinaryString
(long i) static String
toHexString
(long i) static String
toOctalString
(long i) toString()
static String
toString
(long value) static String
toString
(long i, int radix) static TLong
valueOf
(long value) static TLong
static TLong
Methods inherited from class org.teavm.classlib.java.lang.TNumber
byteValue, shortValue
-
Field Details
-
MIN_VALUE
public static final long MIN_VALUE- See Also:
-
MAX_VALUE
public static final long MAX_VALUE- See Also:
-
TYPE
-
SIZE
public static final int SIZE- See Also:
-
BYTES
public static final int BYTES- See Also:
-
-
Constructor Details
-
TLong
public TLong(long value) -
TLong
- Throws:
TNumberFormatException
-
-
Method Details
-
valueOf
-
parseLong
- Throws:
TNumberFormatException
-
parseLong
public static long parseLong(CharSequence s, int beginIndex, int endIndex, int radix) throws TNumberFormatException - Throws:
TNumberFormatException
-
parseLong
- Throws:
TNumberFormatException
-
valueOf
- Throws:
TNumberFormatException
-
valueOf
- Throws:
TNumberFormatException
-
decode
- Throws:
TNumberFormatException
-
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
-
toHexString
-
toOctalString
-
toBinaryString
-
toString
-
toString
-
hashCode
public int hashCode() -
equals
-
compare
public static int compare(long a, long b) -
compareTo
- Specified by:
compareTo
in interfaceTComparable<TLong>
-
getLong
-
getLong
-
getLong
-
numberOfLeadingZeros
public static int numberOfLeadingZeros(long i) -
numberOfTrailingZeros
public static int numberOfTrailingZeros(long i) -
highestOneBit
public static long highestOneBit(long i) -
lowestOneBit
public static long lowestOneBit(long i) -
bitCount
public static int bitCount(long i) -
rotateLeft
public static long rotateLeft(long i, int distance) -
rotateRight
public static long rotateRight(long i, int distance) -
reverse
public static long reverse(long i) -
reverseBytes
public static long reverseBytes(long i) -
signum
public static int signum(long i) -
divideUnsigned
public static long divideUnsigned(long dividend, long divisor) -
remainderUnsigned
public static long remainderUnsigned(long dividend, long divisor) -
compareUnsigned
public static int compareUnsigned(long a, long b)
-