public final class ByteOperator extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
getBit(byte value,
int index)
Obtains a specific bit value from a byte with given index number.
|
static int |
getHex(int decimal)
Convert decimal integer into hex integer.
|
static byte |
toBit(boolean value,
int bit)
Converts boolean value into bit.
|
public static boolean getBit(byte value,
int index)
value - byte valueindex - index numberpublic static byte toBit(boolean value,
int bit)
value - boolean valuebit - bit valuepublic static int getHex(int decimal)
decimal - decimal formatted integer