Package com.mchange.lang
Class IntegerUtils
java.lang.Object
com.mchange.lang.IntegerUtils
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
byteArrayFromInt
(int i) static int
intFromByteArray
(byte[] bytes, int offset) static int
intFromByteArrayLittleEndian
(byte[] bytes, int offset) static void
intIntoByteArray
(int i, int offset, byte[] bytes) static void
intIntoByteArrayLittleEndian
(int i, int offset, byte[] bytes) static int
static int
static long
toUnsigned
(int i)
-
Field Details
-
UNSIGNED_MAX_VALUE
public static final long UNSIGNED_MAX_VALUE- See Also:
-
-
Method Details
-
parseInt
-
parseInt
-
intFromByteArray
public static int intFromByteArray(byte[] bytes, int offset) -
byteArrayFromInt
public static byte[] byteArrayFromInt(int i) -
intIntoByteArray
public static void intIntoByteArray(int i, int offset, byte[] bytes) -
intFromByteArrayLittleEndian
public static int intFromByteArrayLittleEndian(byte[] bytes, int offset) -
intIntoByteArrayLittleEndian
public static void intIntoByteArrayLittleEndian(int i, int offset, byte[] bytes) -
toUnsigned
public static long toUnsigned(int i)
-