标签:进制 参数 解析 方法 正数 指定 循环 div another
值为 2^31-1 的常量,它表示 int 类型能够表示的最大值 | @Native public static final int MAX_VALUE = 0x7fffffff; |
值为 -2^31 的常量,它表示 int 类型能够表示的最小值 | @Native public static final int MIN_VALUE = 0x80000000; |
用来以二进制补码形式表示 int 值的比特位数 | @Native public static final int SIZE = 32; |
二进制补码形式表示 int 值的字节数 | public static final int BYTES = SIZE / Byte.SIZE; |
表示基本类型 int 的 Class 实例 | public static final Class<Integer> TYPE = (Class<Integer>) Class.getPrimitiveClass("int"); |
接受通过以下语法给出的十进制、十六进制和八进制数字
Sign是可选的 再往后就是指定基数的字符序列的正值,不能是负数,想要设置负数请仅仅使用符号位 也就是+-1 --1这种肯定不行
|
Sign DecimalNumeral
Sign 0x HexDigits
Sign 0X HexDigits
Sign # HexDigits
Sign 0 OctalDigits
Sign:
-
+
|
byte byteValue()
|
|
short shortValue() | |
int intValue() | |
long longValue() | |
float floatValue() | |
double doubleValue() |
static int hashCode(int value) |
静态方法 返回某个int 数值的hashcode |
int hashCode() | 实例方法 获取某个Integer对象的hashcode 等同于static int hashCode(int value) 调用 内部value值 |
最高1 位 最低1 位 前置零个数 和 后置0个数 |
highestOneBit(int) / lowestOneBit(int) numberOfLeadingZeros(int) / numberOfTrailingZeros(int) |
位数 循环左移/循环右移 按位翻转 按照字节翻转 |
bitCount(int) 返回二进制补码表示形式的 1 位的数量,不是全部位数
rotateLeft(int, int) / rotateRight(int, int)
reverse(int) / reverseBytes(int)
|
取整 求余 |
divideUnsigned(int, int)
remainderUnsigned(int, int)
|
标签:进制 参数 解析 方法 正数 指定 循环 div another
原文地址:https://www.cnblogs.com/noteless/p/9716675.html