java.lang
Class Long
java.lang.Object
java.lang.Number
java.lang.Long
public final class Long
- extends Number
TYPE
public static final Class TYPE
MIN_VALUE
public static final long MIN_VALUE
- See Also:
- Constant Field Values
MAX_VALUE
public static final long MAX_VALUE
- See Also:
- Constant Field Values
Long
public Long(long value)
Long
public Long(String s)
throws NumberFormatException
- Throws:
NumberFormatException
doubleValue
public double doubleValue()
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
floatValue
public float floatValue()
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
longValue
public long longValue()
- Specified by:
longValue in class Number
parseLong
public static long parseLong(String s)
throws NumberFormatException
- Throws:
NumberFormatException
parseLong
public static long parseLong(String s,
int radix)
throws NumberFormatException
- Throws:
NumberFormatException
toString
public String toString()
- Overrides:
toString in class Object
toString
public static String toString(long value)
toString
public static String toString(long value,
int radix)
toHexString
public static String toHexString(long i)
toOctalString
public static String toOctalString(long i)
toBinaryString
public static String toBinaryString(long i)
valueOf
public static Long valueOf(String s)
throws NumberFormatException
- Throws:
NumberFormatException
valueOf
public static Long valueOf(String s,
int radix)
throws NumberFormatException
- Throws:
NumberFormatException
getLong
public static Long getLong(String nm)
getLong
public static Long getLong(String nm,
long val)
getLong
public static Long getLong(String nm,
Long val)
intValue
public int intValue()
- Specified by:
intValue in class Number