java.lang.Object | +--java.lang.Number | +--java.lang.Integer
The Integer class wraps a value of the primitive type
int
in an object. An object of type Integer contains a
single field whose type is int.
In addition, this class provides several methods for converting
an int to a String and a
String to an int, as well as other
constants and methods useful when dealing with an
int.
| Field Summary | |
static int |
MAX_VALUE
copy-> MAX_VALUE
|
static int |
MIN_VALUE
copy-> MIN_VALUE
|
static Class |
TYPE
copy-> TYPE
|
| Constructor Summary | |
Integer
copy-> new Integer( )copy-> <Integer var> = new Integer(<int value>);
|
|
Integer
copy-> new Integer( )copy-> <Integer var> = new Integer(<String s>);
|
|
| Method Summary | |
byte |
byteValue()
copy-> .byteValue()copy-> <byte var>=<Integer>.byteValue(); |
int |
compareTo(Integer anotherInteger)
copy-> .compareTo( )copy-> <int var>=<Integer>.compareTo(<Integer anotherInteger>);
|
int |
compareTo(Object o)
copy-> .compareTo( )copy-> <int var>=<Integer>.compareTo(<Object o>);
|
static Integer |
decode(String nm)
copy-> Integer.decode( )copy-> <Integer var>=Integer.decode(<String nm>);
|
double |
doubleValue()
copy-> .doubleValue()copy-> <double var>=<Integer>.doubleValue();
|
boolean |
equals(Object obj)
copy-> .equals( )copy-> <boolean var>=<Integer>.equals(<Object obj>);
|
float |
floatValue()
copy-> .floatValue()copy-> <float var>=<Integer>.floatValue();
|
static Integer |
getInteger(String nm)
copy-> Integer.getInteger( )copy-> <Integer var>=Integer.getInteger(<String nm>);
|
static Integer |
getInteger(String nm,
int val)
copy-> Integer.getInteger(, )copy-> <Integer var>=Integer.getInteger(<String nm>, <int val>);
|
static Integer |
getInteger(String nm,
Integer val)
copy-> Integer.getInteger(, )copy-> <Integer var>=Integer.getInteger(<String nm>, <Integer val>);
|
int |
hashCode()
copy-> .hashCode()copy-> <int var>=<Integer>.hashCode(); |
int |
intValue()
copy-> .intValue()copy-> <int var>=<Integer>.intValue(); |
long |
longValue()
copy-> .longValue()copy-> <long var>=<Integer>.longValue(); |
static int |
parseInt(String s)
copy-> Integer.parseInt( )copy-> <int var>=Integer.parseInt(<String s>);
|
static int |
parseInt(String s,
int radix)
copy-> Integer.parseInt(, )copy-> <int var>=Integer.parseInt(<String s>, <int radix>);
|
short |
shortValue()
copy-> .shortValue()copy-> <short var>=<Integer>.shortValue();
|
static String |
toBinaryString(int i)
copy-> Integer.toBinaryString( )copy-> <String var>=Integer.toBinaryString(<int i>);
|
static String |
toHexString(int i)
copy-> Integer.toHexString( )copy-> <String var>=Integer.toHexString(<int i>);
|
static String |
toOctalString(int i)
copy-> Integer.toOctalString( )copy-> <String var>=Integer.toOctalString(<int i>);
|
String |
toString()
copy-> .toString()copy-> <String var>=<Integer>.toString();
|
static String |
toString(int i)
copy-> Integer.toString( )copy-> <String var>=Integer.toString(<int i>);
|
static String |
toString(int i,
int radix)
copy-> Integer.toString(, )copy-> <String var>=Integer.toString(<int i>, <int radix>);
|
static Integer |
valueOf(String s)
copy-> Integer.valueOf( )copy-> <Integer var>=Integer.valueOf(<String s>);
|
static Integer |
valueOf(String s,
int radix)
copy-> Integer.valueOf(, )copy-> <Integer var>=Integer.valueOf(<String s>, <int radix>);
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |