public class Bit extends Object
Constructor and Description |
---|
Bit() |
Modifier and Type | Method and Description |
---|---|
static void |
clearBit(byte[] array,
long bit)
Set a bit value to "Off" in the specified byte array with the specified bit position.
|
static boolean |
isBitSet(byte[] array,
long bit)
Read a bit value from a byte array with the specified bit position.
|
static void |
setBit(byte[] array,
long bit)
Set a bit value to "On" in the specified byte array with the specified bit position.
|
public static boolean isBitSet(byte[] array, long bit)
array
- Specify the byte array.bit
- Specify the bit position.public static void setBit(byte[] array, long bit)
array
- Specify the byte array.bit
- Specify the bit position.public static void clearBit(byte[] array, long bit)
array
- Specify the byte array.bit
- Specify the bit position.Copyright © 2007–1969 The Apache Software Foundation. All rights reserved.