The Long class wraps a value of how long to boil pork ribs before grilling primitive type long in an object. An object of type Long contains a single field whose type is long. MAX_VALUE A constant holding the maximum value a long can have, 263-1.
MIN_VALUE A constant holding the minimum value a long can have, -263. SIZE The number of bits used to represent a long value in two’s complement binary form. TYPE The Class instance representing the primitive type long. Constructs a newly allocated Long object that represents the specified long argument. Constructs a newly allocated Long object that represents the long value indicated by the String parameter. Returns the number of one-bits in the two’s complement binary representation of the specified long value. Returns the value of this Long as a byte.
Decodes a String into a Long. Returns the value of this Long as a double. Compares this object to the specified object. Returns the value of this Long as a float.
Returns the value obtained by rotating the two’s complement binary representation of the specified long value left by the specified number of bits. Returns the value obtained by rotating the two’s complement binary representation of the specified long value right by the specified number of bits. Returns the value of this Long as a short. Returns the signum function of the specified long value. Returns a string representation of the long argument as an unsigned integer in base 2.
Returns a string representation of the long argument as an unsigned integer in base 16. Returns a string representation of the long argument as an unsigned integer in base 8. Returns a String object representing this Long’s value. Returns a String object representing the specified long. Returns a string representation of the first argument in the radix specified by the second argument. Returns a Long instance representing the specified long value. Returns a Long object holding the value of the specified String.