Package java.lang
Class Long
- java.lang.Object
-
- java.lang.Number
-
- java.lang.Long
-
- All Implemented Interfaces:
Serializable
,Comparable
public final class Long extends Number implements Comparable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte
byteValue()
int
compareTo(Long var0)
int
compareTo(Object var0)
static Long
decode(String var0)
double
doubleValue()
boolean
equals(Object var0)
float
floatValue()
static Long
getLong(String var0)
static Long
getLong(String var0, long var1)
static Long
getLong(String var0, Long var1)
int
hashCode()
int
intValue()
long
longValue()
static long
parseLong(String var0)
static long
parseLong(String var0, int var1)
short
shortValue()
static String
toBinaryString(long var0)
static String
toHexString(long var0)
static String
toOctalString(long var0)
String
toString()
static String
toString(long var0)
static String
toString(long var0, int var1)
static Long
valueOf(String var0)
static Long
valueOf(String var0, int var1)
-
-
-
Field Detail
-
MAX_VALUE
public static final long MAX_VALUE
- See Also:
- Constant Field Values
-
MIN_VALUE
public static final long MIN_VALUE
- See Also:
- Constant Field Values
-
TYPE
public static final Class TYPE
-
-
Constructor Detail
-
Long
public Long(long var0)
-
Long
public Long(String var0) throws NumberFormatException
- Throws:
NumberFormatException
-
-
Method Detail
-
compareTo
public int compareTo(Long var0)
-
compareTo
public int compareTo(Object var0)
- Specified by:
compareTo
in interfaceComparable
-
decode
public static Long decode(String var0) throws NumberFormatException
- Throws:
NumberFormatException
-
doubleValue
public double doubleValue()
- Specified by:
doubleValue
in classNumber
-
floatValue
public float floatValue()
- Specified by:
floatValue
in classNumber
-
parseLong
public static long parseLong(String var0) throws NumberFormatException
- Throws:
NumberFormatException
-
parseLong
public static long parseLong(String var0, int var1) throws NumberFormatException
- Throws:
NumberFormatException
-
shortValue
public short shortValue()
- Overrides:
shortValue
in classNumber
-
toBinaryString
public static String toBinaryString(long var0)
-
toHexString
public static String toHexString(long var0)
-
toOctalString
public static String toOctalString(long var0)
-
toString
public static String toString(long var0)
-
toString
public static String toString(long var0, int var1)
-
valueOf
public static Long valueOf(String var0) throws NumberFormatException
- Throws:
NumberFormatException
-
valueOf
public static Long valueOf(String var0, int var1) throws NumberFormatException
- Throws:
NumberFormatException
-
-