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 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 value