public final class BitUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BITMASK_SIZE |
| Modifier and Type | Method and Description |
|---|---|
static byte |
intToByte(int value) |
static short |
intToShort(int value) |
static boolean |
isIntNegative(int value) |
static boolean |
isIntToBytePossible(int value) |
static boolean |
isIntToShortPossible(int value) |
static boolean |
isLongNegative(long value) |
static boolean |
isLongToBytePossible(long value) |
static boolean |
isLongToIntPossible(long value) |
static boolean |
isLongToShortPossible(long value) |
static boolean |
isSet(short bitmask,
long index) |
static boolean |
isShortNegative(short value) |
static boolean |
isShortToBytePossible(short value) |
static byte |
longToByte(long value) |
static short |
longToInt(long value) |
static short |
longToShort(long value) |
static byte |
shortToByte(short value) |
public static final int BITMASK_SIZE
public static boolean isSet(short bitmask,
long index)
public static boolean isLongToBytePossible(long value)
public static boolean isLongToShortPossible(long value)
public static boolean isLongToIntPossible(long value)
public static boolean isIntToBytePossible(int value)
public static boolean isIntToShortPossible(int value)
public static boolean isShortToBytePossible(short value)
public static byte longToByte(long value)
public static short longToShort(long value)
public static short longToInt(long value)
public static byte intToByte(int value)
public static short intToShort(int value)
public static byte shortToByte(short value)
public static boolean isLongNegative(long value)
public static boolean isIntNegative(int value)
public static boolean isShortNegative(short value)
Copyright © 2016. All rights reserved.