Integer (java.lang.Integer)
- Wrapper class for
int - Package:
java.lang.Integer - Reference:
| Name | Type | Sub-Type | Use |
|---|---|---|---|
| BYTE | field | static int | Integer.BYTE |
| MAX_VALUE | field | static int | Integer.MAX_VALUE |
| MIN_VALUE | field | static int | Integer.MIN_VALUE |
| SIZE | field | static int | Integer.SIZE |
| Integer(int value) | constructor | - | Integer(10) |
| Integer(String value) | constructor | - | Integer(“10”) |
| parseInt(String s, int radix) | method | static int | Integer.parseInt(“0110”, 2) \ 6 |
| toBinaryString(int i) | method | String | Integer.toBinaryString(2) |
| valueOf(int i) | method | static int | Integer.valueOf(20) |
| bitCount(int i) | method | Integer.bitCount(10) | |
| compareTo(Integer anotherInteger) | method | int | i.compareTo(j) |
| max(int i, int j) | method | static int | Integer.max(i, j) |
| min(int i, int j) | method | static int | Integer.min(i, j) |