java.lang.Long (JDK 1.0)
This class provides an immutable object wrapper around the long primitive data type. This class also contains useful minimum and maximum constants and useful conversion methods. parseLong() and valueOf() convert a string to a long or to a Long, respectively. Each can take a radix argument to specify the base that the value is represented in. toString() converts in the other direction and may also take a radix argument. toBinaryString(), toOctalString(), and toHexString() convert a long to a string using base 2, base 8, and base 16. These methods treat the long as an unsigned value.
Other routines return the value of a Long as various primitive types, and finally, the getLong() methods return the long value of a named property or the value of the specified default.
public final classLongextends Number { //Public ConstructorspublicLong(longvalue); publicLong(Strings) throws NumberFormatException; //Constantspublic static final longMAX_VALUE; public static final longMIN_VALUE; 1.1public static final ClassTYPE; //Class Methodspublic static LonggetLong(Stringnm); public static LonggetLong(Stringnm, longval); public static LonggetLong(Stringnm, Longval); public static longparseLong(Strings, intradix) throws NumberFormatException; public static longparseLong(Strings) throws NumberFormatException; public static StringtoBinaryString(longi); public static StringtoHexString(longi); public static StringtoOctalString(longi); public static StringtoString(longi, intradix); public static StringtoString(longi); public static LongvalueOf(Strings, intradix) throws NumberFormatException; public static LongvalueOf(Strings) throws NumberFormatException; //Public Instance Methods1.1public bytebyteValue(); //Overrides Numberpublic doubledoubleValue(); //Defines Numberpublic booleanequals(Objectobj); //Overrides Objectpublic floatfloatValue(); //Defines Numberpublic inthashCode(); //Overrides Objectpublic intintValue(); //Defines Numberpublic longlongValue(); //Defines Number1.1public shortshortValue(); //Overrides Numberpublic StringtoString(); //Overrides Object}
Hierarchy:
Object->Number(Serializable)->Long
Passed To:
Long.getLong()
Returned By:
Long.getLong(), Long.valueOf()