Package com.mchange.lang
Class IntegerUtils
- java.lang.Object
-
- com.mchange.lang.IntegerUtils
-
public final class IntegerUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static long
UNSIGNED_MAX_VALUE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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
parseInt(java.lang.String intStr, int dflt)
static int
parseInt(java.lang.String intStr, int radix, int dflt)
static long
toUnsigned(int i)
-
-
-
Field Detail
-
UNSIGNED_MAX_VALUE
public static final long UNSIGNED_MAX_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
parseInt
public static int parseInt(java.lang.String intStr, int dflt)
-
parseInt
public static int parseInt(java.lang.String intStr, int radix, int dflt)
-
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)
-
-