java.lang
Class Integer
java.lang.Object
java.lang.Number
java.lang.Integer
- All Implemented Interfaces:
- Comparable, Serializable
- public final class Integer
- extends Number
- implements Comparable
MIN_VALUE
public static final int MIN_VALUE
serialVersionUID
private static final long serialVersionUID
digits
static final char[] digits
DigitTens
static final char[] DigitTens
perThreadBuffer
private static ThreadLocal perThreadBuffer
TYPE
public static final Class TYPE
DigitOnes
static final char[] DigitOnes
value
private int value
MAX_VALUE
public static final int MAX_VALUE
Integer
public Integer(int)
Integer
public Integer(String)
throws NumberFormatException
- Throws:
NumberFormatException
byteValue
public byte byteValue()
- Overrides:
byteValue in class Number
doubleValue
public double doubleValue()
floatValue
public float floatValue()
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
intValue
public int intValue()
longValue
public long longValue()
shortValue
public short shortValue()
- Overrides:
shortValue in class Number
getChars
private static int getChars(int,
char[])
compareTo
public int compareTo(Integer)
compareTo
public int compareTo(Object)
- Specified by:
compareTo in interface Comparable
equals
public boolean equals(Object)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
toBinaryString
public static String toBinaryString(int)
toHexString
public static String toHexString(int)
toOctalString
public static String toOctalString(int)
toString
public static String toString(int)
toString
public static String toString(int,
int)
toUnsignedString
private static String toUnsignedString(int,
int)
parseInt
public static int parseInt(String)
throws NumberFormatException
- Throws:
NumberFormatException
parseInt
public static int parseInt(String,
int)
throws NumberFormatException
- Throws:
NumberFormatException
appendTo
static void appendTo(int,
StringBuffer)
decode
public static Integer decode(String)
throws NumberFormatException
- Throws:
NumberFormatException
getInteger
public static Integer getInteger(String)
valueOf
public static Integer valueOf(String)
throws NumberFormatException
- Throws:
NumberFormatException
getInteger
public static Integer getInteger(String,
int)
valueOf
public static Integer valueOf(String,
int)
throws NumberFormatException
- Throws:
NumberFormatException
getInteger
public static Integer getInteger(String,
Integer)
JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.