public final class Long extends Number implements Comparable<Long>
Modifier and Type | Field and Description |
---|---|
static long |
MAX_VALUE |
static long |
MIN_VALUE |
static int |
SIZE |
static Class<?> |
TYPE |
Modifier and Type | Method and Description |
---|---|
static int |
bitCount(long v) |
byte |
byteValue()
Return the byte value of this Number.
|
int |
compareTo(Long ob)
Compares this with another Object.
|
static Long |
decode(String s) |
double |
doubleValue()
Return the double value of this Number.
|
boolean |
equals(Object o) |
float |
floatValue()
Return the float value of this Number.
|
static Long |
getLong(String name) |
static Long |
getLong(String name,
int def) |
static Long |
getLong(String name,
Long def) |
int |
hashCode() |
static long |
highestOneBit(long v) |
int |
intValue()
Return the int value of this Number.
|
long |
longValue()
Return the long value of this Number.
|
static long |
lowestOneBit(long v) |
static int |
numberOfLeadingZeros(long v) |
static int |
numberOfTrailingZeros(long v) |
static long |
parseLong(String s) |
static long |
parseLong(String s,
int radix) |
static long |
reverse(long v) |
static long |
reverseBytes(long v) |
static long |
rotateLeft(long v,
int bits) |
static long |
rotateRight(long v,
int bits) |
short |
shortValue()
Return the short value of this Number.
|
static int |
signnum(long i) |
static String |
toBinaryString(long v) |
static String |
toHexString(long v) |
static String |
toOctalString(long v) |
String |
toString() |
static String |
toString(long v) |
static String |
toString(long v,
int radix) |
static Long |
valueOf(long v) |
static Long |
valueOf(String s) |
static Long |
valueOf(String s,
int radix) |
public static final long MAX_VALUE
public static final long MIN_VALUE
public static final int SIZE
public static final Class<?> TYPE
public Long(long value)
public Long(String s)
public static int bitCount(long v)
public byte byteValue()
Number
public int compareTo(Long ob)
Comparable
compareTo
in interface Comparable<Long>
ob
- the object to compare withpublic double doubleValue()
Number
doubleValue
in class Number
public float floatValue()
Number
floatValue
in class Number
public static long highestOneBit(long v)
public int intValue()
Number
public long longValue()
Number
public static long lowestOneBit(long v)
public static int numberOfLeadingZeros(long v)
public static int numberOfTrailingZeros(long v)
public static long parseLong(String s)
public static long parseLong(String s, int radix)
public static long reverse(long v)
public static long reverseBytes(long v)
public static long rotateLeft(long v, int bits)
public static long rotateRight(long v, int bits)
public short shortValue()
Number
shortValue
in class Number
public static int signnum(long i)
public static String toBinaryString(long v)
public static String toHexString(long v)
public static String toOctalString(long v)
public static String toString(long v)
public static String toString(long v, int radix)
public static Long valueOf(long v)