public final class BitVector extends Object
Modifier and Type | Field and Description |
---|---|
private byte[] |
array |
private static int |
DEFAULT_SIZE_IN_BYTES |
private int |
sizeInBits |
Constructor and Description |
---|
BitVector() |
Modifier and Type | Method and Description |
---|---|
void |
appendBit(int bit) |
void |
appendBits(int value,
int numBits) |
void |
appendBitVector(BitVector bits) |
private void |
appendByte(int value) |
int |
at(int index) |
byte[] |
getArray() |
int |
size() |
int |
sizeInBytes() |
String |
toString() |
void |
xor(BitVector other) |
private int sizeInBits
private byte[] array
private static final int DEFAULT_SIZE_IN_BYTES
public BitVector()
public int at(int index)
public int size()
public int sizeInBytes()
public void appendBit(int bit)
public void appendBits(int value, int numBits)
public void appendBitVector(BitVector bits)
public byte[] getArray()
private void appendByte(int value)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses