java.lang
Class Long

java.lang.Object
  extended by java.lang.Number
      extended by java.lang.Long
All Implemented Interfaces:
Serializable, Comparable


public final class Long
extends Number
implements Comparable

Standard wrapper for int, as specified by the standard Java API.

Compliance: CLDC: 1.0 complete

Compliance: J2SE: 1.4 incomplete

See Also:
Serialized Form

Field Summary
static long MAX_VALUE
           
static long MIN_VALUE
           
static Class TYPE
           
 
Constructor Summary
Long(long value)
           
Long(String s)
           
 
Method Summary
 byte byteValue()
           
 int compareTo(Long anotherLong)
           
 int compareTo(Object o)
           
static Long decode(String nm)
           
 double doubleValue()
           
 boolean equals(Object obj)
           
 float floatValue()
           
static Long getLong(String nm)
           
static Long getLong(String nm, long val)
           
static Long getLong(String nm, Long val)
           
 int hashCode()
           
 int intValue()
           
 long longValue()
           
static long parseLong(String s)
           
static long parseLong(String s, int radix)
           
 short shortValue()
           
static String toBinaryString(long i)
           
static String toHexString(long i)
           
static String toOctalString(long i)
           
 String toString()
           
static String toString(long number)
           
static String toString(long number, int radix)
           
static Long valueOf(String s)
           
static Long valueOf(String s, int radix)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 value)

Long

public Long(String s)
     throws NumberFormatException
Throws:
NumberFormatException
Method Detail

byteValue

public byte byteValue()
Specified by:
byteValue in class Number

shortValue

public short shortValue()
Specified by:
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 obj)
Overrides:
equals in class Object

compareTo

public int compareTo(Long anotherLong)

compareTo

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

toString

public static String toString(long number,
                              int radix)

toHexString

public static String toHexString(long i)

toOctalString

public static String toOctalString(long i)

toBinaryString

public static String toBinaryString(long i)

toString

public static String toString(long number)

parseLong

public static long parseLong(String s,
                             int radix)
                      throws NumberFormatException
Throws:
NumberFormatException

parseLong

public static long parseLong(String s)
                      throws NumberFormatException
Throws:
NumberFormatException

valueOf

public static Long valueOf(String s,
                           int radix)
                    throws NumberFormatException
Throws:
NumberFormatException

valueOf

public static Long valueOf(String s)
                    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)

decode

public static Long decode(String nm)
                   throws NumberFormatException
Throws:
NumberFormatException