Example usage for Java java.lang Integer fields, constructors, methods, implement or subclass
The text is from its open source code.
int | MIN_VALUE A constant holding the minimum value an int can have, -231. |
int | MAX_VALUE A constant holding the maximum value an int can have, 231-1. |
Class | TYPE The Class instance representing the primitive type int . |
int | SIZE The number of bits used to represent an int value in two's complement binary form. |
int | BYTES The number of bytes used to represent an int value in two's complement binary form. |
Integer(int value) Constructs a newly allocated Integer object that represents the specified int value. | |
Integer(String s) Constructs a newly allocated Integer object that represents the int value indicated by the String parameter. |
int | bitCount(int i) Returns the number of one-bits in the two's complement binary representation of the specified int value. |
byte | byteValue() Returns the value of this Integer as a byte after a narrowing primitive conversion. |
int | compare(int x, int y) Compares two int values numerically. |
int | compareTo(Integer anotherInteger) Compares two Integer objects numerically. |
Integer | decode(String nm) Decodes a String into an Integer . |
int | divideUnsigned(int dividend, int divisor) Returns the unsigned quotient of dividing the first argument by the second where each argument and the result is interpreted as an unsigned value. |
double | doubleValue() Returns the value of this Integer as a double after a widening primitive conversion. |
boolean | equals(Object obj) Compares this object to the specified object. |
float | floatValue() Returns the value of this Integer as a float after a widening primitive conversion. |
Class> | getClass() Returns the runtime class of this Object . |
Integer | getInteger(String nm) Determines the integer value of the system property with the specified name. |
Integer | getInteger(String nm, int val) Determines the integer value of the system property with the specified name. |
Integer | getInteger(String nm, Integer val) Returns the integer value of the system property with the specified name. |
int | hashCode() Returns a hash code for this Integer . |
int | hashCode(int value) Returns a hash code for an int value; compatible with Integer.hashCode() . |
int | highestOneBit(int i) Returns an int value with at most a single one-bit, in the position of the highest-order ("leftmost") one-bit in the specified int value. |
int | intValue() Returns the value of this Integer as an int . |
long | longValue() Returns the value of this Integer as a long after a widening primitive conversion. |
int | lowestOneBit(int i) Returns an int value with at most a single one-bit, in the position of the lowest-order ("rightmost") one-bit in the specified int value. |
int | max(int a, int b) Returns the greater of two int values as if by calling Math#max(int,int) Math.max . |
int | min(int a, int b) Returns the smaller of two int values as if by calling Math#min(int,int) Math.min . |
int | numberOfLeadingZeros(int i) Returns the number of zero bits preceding the highest-order ("leftmost") one-bit in the two's complement binary representation of the specified int value. |
int | numberOfTrailingZeros(int i) Returns the number of zero bits following the lowest-order ("rightmost") one-bit in the two's complement binary representation of the specified int value. |
int | parseInt(String s) Parses the string argument as a signed decimal integer. |
int | parseInt(String s, int radix) Parses the string argument as a signed integer in the radix specified by the second argument. |
int | parseUnsignedInt(String s, int radix) Parses the string argument as an unsigned integer in the radix specified by the second argument. |
int | parseUnsignedInt(String s) Parses the string argument as an unsigned decimal integer. |
int | reverse(int i) Returns the value obtained by reversing the order of the bits in the two's complement binary representation of the specified int value. |
int | reverseBytes(int i) Returns the value obtained by reversing the order of the bytes in the two's complement representation of the specified int value. |
int | rotateLeft(int i, int distance) Returns the value obtained by rotating the two's complement binary representation of the specified int value left by the specified number of bits. |
int | rotateRight(int i, int distance) Returns the value obtained by rotating the two's complement binary representation of the specified int value right by the specified number of bits. |
short | shortValue() Returns the value of this Integer as a short after a narrowing primitive conversion. |
int | signum(int i) Returns the signum function of the specified int value. |
int | sum(int a, int b) Adds two integers together as per the + operator. |
String | toBinaryString(int i) Returns a string representation of the integer argument as an unsigned integer in base 2. |
String | toHexString(int i) Returns a string representation of the integer argument as an unsigned integer in base 16. |
String | toOctalString(int i) Returns a string representation of the integer argument as an unsigned integer in base 8. |
String | toString() Returns a String object representing this Integer 's value. |
String | toString(int i) Returns a String object representing the specified integer. |
String | toString(int i, int radix) Returns a string representation of the first argument in the radix specified by the second argument. |
long | toUnsignedLong(int x) Converts the argument to a long by an unsigned conversion. |
String | toUnsignedString(int i) Returns a string representation of the argument as an unsigned decimal value. |
Integer | valueOf(String s) Returns an Integer object holding the value of the specified String . |
Integer | valueOf(int i) Returns an Integer instance representing the specified int value. |
Integer | valueOf(String s, int radix) Returns an Integer object holding the value extracted from the specified String when parsed with the radix given by the second argument. |