java.lang
Class Integer

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

public final synchronized class Integer
extends Number
implements Comparable

See Also:
Serialized Form

Field Summary
(package private) static char[] DigitOnes
           
(package private) static char[] digits
           
(package private) static char[] DigitTens
           
static int MAX_VALUE
           
static int MIN_VALUE
           
private static long serialVersionUID
           
static Class TYPE
           
private  int value
           
 
Constructor Summary
Integer(int)
           
Integer(String)
           
 
Method Summary
(package private) static void ()
           
 byte byteValue()
           
 int compareTo(Integer)
           
 int compareTo(Object)
           
static Integer decode(String)
           
 double doubleValue()
           
 boolean equals(Object)
           
 float floatValue()
           
static Integer getInteger(String)
           
static Integer getInteger(String, int)
           
static Integer getInteger(String, Integer)
           
 int hashCode()
           
 int intValue()
           
 long longValue()
           
static int parseInt(String)
           
static int parseInt(String, int)
           
 short shortValue()
           
static String toBinaryString(int)
           
static String toHexString(int)
           
static String toOctalString(int)
           
 String toString()
           
static String toString(int)
           
static String toString(int, int)
           
private static String toUnsignedString(int, int)
           
static Integer valueOf(String)
           
static Integer 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 int MIN_VALUE
See Also:
Constant Field Values

MAX_VALUE

public static final int MAX_VALUE
See Also:
Constant Field Values

TYPE

public static final Class TYPE

digits

static final char[] digits

DigitTens

static final char[] DigitTens

DigitOnes

static final char[] DigitOnes

value

private int value

serialVersionUID

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

Integer

public Integer(int)

Integer

public Integer(String)
        throws NumberFormatException
Method Detail

toString

public static String toString(int,
                              int)

toHexString

public static String toHexString(int)

toOctalString

public static String toOctalString(int)

toBinaryString

public static String toBinaryString(int)

toUnsignedString

private static String toUnsignedString(int,
                                       int)

toString

public static String toString(int)

parseInt

public static int parseInt(String,
                           int)
                    throws NumberFormatException
NumberFormatException

parseInt

public static int parseInt(String)
                    throws NumberFormatException
NumberFormatException

valueOf

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

valueOf

public static Integer valueOf(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

getInteger

public static Integer getInteger(String)

getInteger

public static Integer getInteger(String,
                                 int)

getInteger

public static Integer getInteger(String,
                                 Integer)

decode

public static Integer decode(String)
                      throws NumberFormatException
NumberFormatException

compareTo

public int compareTo(Integer)

compareTo

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

static void ()