Long Members

Long Members

Class Overview | This Package | All Packages

Fields
Name Description
MAX_VALUE The largest value of type long.
MIN_VALUE The smallest value of type long.
TYPE The Class object representing the primitive type long.

Constructors
Name Description
Long(long) Constructs a newly allocated Long object that represents the primitive long argument.
Long(String) Constructs a newly allocated Long object that represents the value represented by the string.

Methods
Name Description
byteValue() Returns the value of this Long as a byte.
doubleValue() Returns the value of this Long as a double.
equals(Object) Compares this object against the specified object.
floatValue() Returns the value of this Long as a float.
getLong(String) Determines the long value of the system property with the specified name.
getLong(String, Long) Determines the long value of the system property with the specified name.
getLong(String, long) Determines the long value of the system property with the specified name.
hashCode() Computes a hashcode for this Long.
intValue() Returns the value of this Long as an int.
longValue() Returns the value of this Long as a long.
parseLong(String) Parses the string argument as a signed decimal long.
parseLong(String, int) Parses the string argument as a signed long in the radix specified by the second argument.
shortValue() Returns the value of this Long as a short.
toBinaryString(long) Creates a string representation of the long argument as an unsigned integer in base 2.
toHexString(long) Creates a string representation of the long argument as an unsigned integer in base 16.
toOctalString(long) Creates a string representation of the long argument as an unsigned integer in base 8.
toString() Returns a String object representing this Long's value.
toString(long) Returns a new String object representing the specified integer.
toString(long, int) Creates a string representation of the first argument in the radix specified by the second argument.
valueOf(String) Returns a new long object initialized to the value of the specified String.
valueOf(String, int) Returns a new long object initialized to the value of the specified String.