Example usage for Java java.lang Long fields, constructors, methods, implement or subclass
The text is from its open source code.
long | MIN_VALUE A constant holding the minimum value a long can have, -263. |
long | MAX_VALUE A constant holding the maximum value a long can have, 263-1. |
Class | TYPE The Class instance representing the primitive type long . |
int | SIZE The number of bits used to represent a long value in two's complement binary form. |
int | BYTES The number of bytes used to represent a long value in two's complement binary form. |
Long(long value) Constructs a newly allocated Long object that represents the specified long argument. | |
Long(String s) Constructs a newly allocated Long object that represents the long value indicated by the String parameter. |
int | bitCount(long i) Returns the number of one-bits in the two's complement binary representation of the specified long value. |
byte | byteValue() Returns the value of this Long as a byte after a narrowing primitive conversion. |
int | compare(long x, long y) Compares two long values numerically. |
int | compareTo(Long anotherLong) Compares two Long objects numerically. |
int | compareUnsigned(long x, long y) Compares two long values numerically treating the values as unsigned. |
Long | decode(String nm) Decodes a String into a Long . |
long | divideUnsigned(long dividend, long divisor) Returns the unsigned quotient of dividing the first argument by the second where each argument and the result is interpreted as an unsigned value. |
double | doubleValue() Returns the value of this Long as a double after a widening primitive conversion. |
boolean | equals(Object obj) Compares this object to the specified object. |
float | floatValue() Returns the value of this Long as a float after a widening primitive conversion. |
Class> | getClass() Returns the runtime class of this Object . |
Long | getLong(String nm) Determines the long value of the system property with the specified name. |
Long | getLong(String nm, long val) Determines the long value of the system property with the specified name. |
Long | getLong(String nm, Long val) Returns the long value of the system property with the specified name. |
int | hashCode() Returns a hash code for this Long . |
int | hashCode(long value) Returns a hash code for a long value; compatible with Long.hashCode() . |
long | highestOneBit(long i) Returns a long value with at most a single one-bit, in the position of the highest-order ("leftmost") one-bit in the specified long value. |
int | intValue() Returns the value of this Long as an int after a narrowing primitive conversion. |
long | longValue() Returns the value of this Long as a long value. |
long | lowestOneBit(long i) Returns a long value with at most a single one-bit, in the position of the lowest-order ("rightmost") one-bit in the specified long value. |
long | max(long a, long b) Returns the greater of two long values as if by calling Math#max(long,long) Math.max . |
int | numberOfLeadingZeros(long i) Returns the number of zero bits preceding the highest-order ("leftmost") one-bit in the two's complement binary representation of the specified long value. |
int | numberOfTrailingZeros(long i) Returns the number of zero bits following the lowest-order ("rightmost") one-bit in the two's complement binary representation of the specified long value. |
long | parseLong(String s, int radix) Parses the string argument as a signed long in the radix specified by the second argument. |
long | parseLong(String s) Parses the string argument as a signed decimal long . |
long | parseUnsignedLong(String s) Parses the string argument as an unsigned decimal long . |
long | parseUnsignedLong(String s, int radix) Parses the string argument as an unsigned long in the radix specified by the second argument. |
long | reverse(long i) Returns the value obtained by reversing the order of the bits in the two's complement binary representation of the specified long value. |
long | reverseBytes(long i) Returns the value obtained by reversing the order of the bytes in the two's complement representation of the specified long value. |
long | rotateLeft(long i, int distance) Returns the value obtained by rotating the two's complement binary representation of the specified long value left by the specified number of bits. |
long | rotateRight(long i, int distance) Returns the value obtained by rotating the two's complement binary representation of the specified long value right by the specified number of bits. |
short | shortValue() Returns the value of this Long as a short after a narrowing primitive conversion. |
int | signum(long i) Returns the signum function of the specified long value. |
String | toBinaryString(long i) Returns a string representation of the long argument as an unsigned integer in base 2. |
String | toHexString(long i) Returns a string representation of the long argument as an unsigned integer in base 16. |
String | toOctalString(long i) Returns a string representation of the long argument as an unsigned integer in base 8. |
String | toString() Returns a String object representing this Long 's value. |
String | toString(long i) Returns a String object representing the specified long . |
String | toString(long i, int radix) Returns a string representation of the first argument in the radix specified by the second argument. |
String | toUnsignedString(long i) Returns a string representation of the argument as an unsigned decimal value. |
Long | valueOf(String s) Returns a Long object holding the value of the specified String . |
Long | valueOf(long l) Returns a Long instance representing the specified long value. |
Long | valueOf(String s, int radix) Returns a Long object holding the value extracted from the specified String when parsed with the radix given by the second argument. |
void | wait(long timeoutMillis) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed. |