java.lang
Class Long

java.lang.Object
  |
  +--java.lang.Number
        |
        +--java.lang.Long
All Implemented Interfaces:
Comparable, java.io.Serializable

public final synchronized class Long
extends Number
implements Comparable

See Also:
Serialized Form

Field Summary
static long MAX_VALUE
           
static long MIN_VALUE
           
private static long serialVersionUID
           
static Class TYPE
           
private  long value
           
 
Constructor Summary
Long(long)
           
Long(String)
           
 
Method Summary
(package private) static void ()
           
 byte byteValue()
           
 int compareTo(Long)
           
 int compareTo(Object)
           
static Long decode(String)
           
 double doubleValue()
           
 boolean equals(Object)
           
 float floatValue()
           
static Long getLong(String)
           
static Long getLong(String, long)
           
static Long getLong(String, Long)
           
 int hashCode()
           
 int intValue()
           
 long longValue()
           
static long parseLong(String)
           
static long parseLong(String, int)
           
 short shortValue()
           
static String toBinaryString(long)
           
static String toHexString(long)
           
static String toOctalString(long)
           
 String toString()
           
static String toString(long)
           
static String toString(long, int)
           
private static String toUnsignedString(long, int)
           
static Long valueOf(String)
           
static Long valueOf(String, int)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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

TYPE

public static final Class TYPE

value

private long value

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

Long

public Long(long)

Long

public Long(String)
     throws NumberFormatException
Method Detail

toString

public static String toString(long,
                              int)

toHexString

public static String toHexString(long)

toOctalString

public static String toOctalString(long)

toBinaryString

public static String toBinaryString(long)

toUnsignedString

private static String toUnsignedString(long,
                                       int)

toString

public static String toString(long)

parseLong

public static long parseLong(String,
                             int)
                      throws NumberFormatException
NumberFormatException

parseLong

public static long parseLong(String)
                      throws NumberFormatException
NumberFormatException

valueOf

public static Long valueOf(String,
                           int)
                    throws NumberFormatException
NumberFormatException

valueOf

public static Long valueOf(String)
                    throws NumberFormatException
NumberFormatException

decode

public static Long decode(String)
                   throws NumberFormatException
NumberFormatException

byteValue

public byte byteValue()
Overrides:
byteValue in class Number

shortValue

public short shortValue()
Overrides:
shortValue in class Number

intValue

public int intValue()
Specified by:
intValue in class Number

longValue

public long longValue()
Specified by:
longValue in class Number

floatValue

public float floatValue()
Specified by:
floatValue in class Number

doubleValue

public double doubleValue()
Specified by:
doubleValue in class Number

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object)
Overrides:
equals in class Object

getLong

public static Long getLong(String)

getLong

public static Long getLong(String,
                           long)

getLong

public static Long getLong(String,
                           Long)

compareTo

public int compareTo(Long)

compareTo

public int compareTo(Object)
Specified by:
compareTo in interface Comparable

static void ()