Integer Members

Integer Members

Class Overview | This Package | All Packages

Fields
Name Description
MAX_VALUE The largest value of type int.
MIN_VALUE The smallest value of type int.
TYPE The Class object representing the primitive type int.

Constructors
Name Description
Integer(int) Constructs a newly allocated Integer object that represents the primitive int argument.
Integer(String) Constructs a newly allocated Integer object that represents the value represented by the string.

Methods
Name Description
byteValue() Returns the value of this Integer as a byte.
decode(String) Decodes a string into an Integer.
doubleValue() Returns the value of this Integer as a double.
equals(Object) Compares this object to the specified object.
floatValue() Returns the value of this Integer as a float.
getInteger(String) Determines the integer value of the system property with the specified name.
getInteger(String, int) Determines the integer value of the system property with the specified name.
getInteger(String, Integer) Determines the integer value of the system property with the specified name.
hashCode() Returns a hashcode for this Integer.
intValue() Returns the value of this Integer as an int.
longValue() Returns the value of this Integer as a long.
parseInt(String) Parses the string argument as a signed decimal integer.
parseInt(String, int) Parses the string argument as a signed integer in the radix specified by the second argument.
shortValue() Returns the value of this Integer as a short.
toBinaryString(int) Creates a string representation of the integer argument as an unsigned integer in base 2.
toHexString(int) Creates a string representation of the integer argument as an unsigned integer in base 16.
toOctalString(int) Creates a string representation of the integer argument as an unsigned integer in base 8.
toString() Returns a String object representing this Integer's value.
toString(int) Returns a new String object representing the specified integer.
toString(int, int) Creates a string representation of the first argument in the radix specified by the second argument.
valueOf(String) Returns a new Integer object initialized to the value of the specified String.
valueOf(String, int) Returns a new Integer object initialized to the value of the specified String.