【java常见对象_Integer对象及相关方法】Integer对象的相关方法
Integer类的相关方法
Integer是什么?
Integer 类在JDK1.0的时候就有了,它是一个类,是 int 基本数据类型的封装类。
以下就是Integer类的相关方法,如看Integer类的详细解读敬请稍后!
| 字段摘要 | |
| static int | MAX_VALUE | 
| static int | MIN_VALUE | 
| static int | SIZE | 
| static Class<Integer> | TYPE | 
| 构造方法摘要 | |
| Integer(int value) | 
 | 
| Integer(String s) | 
 | 
| 方法摘要 | |
| static int | bitCount(int i) | 
| byte | byteValue() | 
| int | compareTo(Integer anotherInteger) | 
| static Integer | decode(String nm) | 
| double | doubleValue() | 
| boolean | equals(Object obj) | 
| float | floatValue() | 
| static Integer | getInteger(String nm) | 
| static Integer | getInteger(String nm, int val) | 
| static Integer | getInteger(String nm, Integer val) | 
| int | hashCode() | 
| static int | highestOneBit(int i) | 
| int | intValue() | 
| long | longValue() | 
| static int | lowestOneBit(int i) | 
| static int | numberOfLeadingZeros(int i) | 
| static int | numberOfTrailingZeros(int i) | 
| static int | parseInt(String s) | 
| static int | parseInt(String s, int radix) | 
| static int | reverse(int i) | 
| static int | reverseBytes(int i) | 
| static int | rotateLeft(int i, int distance) | 
| static int | rotateRight(int i, int distance) | 
| short | shortValue() | 
| static int | signum(int i) | 
| static String | toBinaryString(int i) | 
| static String | toHexString(int i) | 
| static String | toOctalString(int i) | 
| String | toString() | 
| static String | toString(int i) | 
| static String | toString(int i, int radix) | 
| static Integer | valueOf(int i) | 
| static Integer | valueOf(String s) | 
| static Integer | valueOf(String s, int radix) | 
- 点赞
- 收藏
- 关注作者
 
             
           
评论(0)