public class Integers
extends java.lang.Object
| Constructor and Description |
|---|
Integers() |
| Modifier and Type | Method and Description |
|---|---|
static int |
bitCount(int i) |
static int |
bitLength(int i) |
static int |
compare(int x,
int y) |
static int |
compareUnsigned(int x,
int y) |
static int |
highestOneBit(int i) |
static int |
lowestOneBit(int i) |
static int |
numberOfLeadingZeros(int i) |
static int |
numberOfTrailingZeros(int i) |
static int |
reverse(int i) |
static int |
reverseBytes(int i) |
static int |
rotateLeft(int i,
int distance) |
static int |
rotateRight(int i,
int distance) |
static byte[] |
toUnsignedByteArray(int i)
Return the big-endian encoding of
i taken as an unsigned 32-bit value, in the fewest
octets that hold its significant bits: 0 is the empty array, 255 is FF, 256 is
01 00, and a negative argument takes all four. |
static java.lang.Integer |
valueOf(int value) |
public static final int BYTES
public static final int SIZE
public static int bitCount(int i)
public static int bitLength(int i)
public static int compare(int x,
int y)
public static int compareUnsigned(int x,
int y)
public static int highestOneBit(int i)
public static int lowestOneBit(int i)
public static int numberOfLeadingZeros(int i)
public static int numberOfTrailingZeros(int i)
public static int reverse(int i)
public static int reverseBytes(int i)
public static int rotateLeft(int i,
int distance)
public static int rotateRight(int i,
int distance)
public static byte[] toUnsignedByteArray(int i)
i taken as an unsigned 32-bit value, in the fewest
octets that hold its significant bits: 0 is the empty array, 255 is FF, 256 is
01 00, and a negative argument takes all four.public static java.lang.Integer valueOf(int value)