public class UnsignedNumberUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static short |
UNSIGNED_BYTE_MAX |
static long |
UNSIGNED_INT_MAX |
static java.math.BigInteger |
UNSIGNED_LONG_MAX |
static int |
UNSIGNED_SHORT_MAX |
| Modifier and Type | Method and Description |
|---|---|
static short |
getUnsignedByte(byte value) |
static long |
getUnsignedInt(byte[] bytes) |
static long |
getUnsignedInt(java.nio.ByteBuffer byteBuffer) |
static java.math.BigInteger |
getUnsignedLong(java.nio.ByteBuffer byteBuffer) |
static int |
getUnsignedShort(byte[] bytes) |
static int |
getUnsignedShort(java.nio.ByteBuffer byteBuffer) |
static boolean |
isWithinUnsignedByte(int value) |
static boolean |
isWithinUnsignedInt(long value) |
static boolean |
isWithinUnsignedLong(java.math.BigInteger value) |
static boolean |
isWithinUnsignedShort(int value) |
static byte[] |
toBytes(java.math.BigInteger unsignedLongValue) |
static byte[] |
toBytes(int ushortValue) |
static byte[] |
toBytes(long uintValue) |
public static final short UNSIGNED_BYTE_MAX
public static final int UNSIGNED_SHORT_MAX
public static final long UNSIGNED_INT_MAX
public static final java.math.BigInteger UNSIGNED_LONG_MAX
public static short getUnsignedByte(byte value)
public static int getUnsignedShort(java.nio.ByteBuffer byteBuffer)
public static int getUnsignedShort(byte[] bytes)
public static long getUnsignedInt(java.nio.ByteBuffer byteBuffer)
public static long getUnsignedInt(byte[] bytes)
public static java.math.BigInteger getUnsignedLong(java.nio.ByteBuffer byteBuffer)
public static byte[] toBytes(int ushortValue)
public static byte[] toBytes(long uintValue)
public static byte[] toBytes(java.math.BigInteger unsignedLongValue)
public static boolean isWithinUnsignedByte(int value)
public static boolean isWithinUnsignedShort(int value)
public static boolean isWithinUnsignedInt(long value)
public static boolean isWithinUnsignedLong(java.math.BigInteger value)