public class BitArray
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected long[] |
entries
Condensed representation of all data
|
Constructor and Description |
---|
BitArray()
Default constructor is needed for deserialization
|
BitArray(long capacity)
Initializes a bit array with the given capacity in bits.
|
Modifier and Type | Method and Description |
---|---|
boolean |
get(long i)
Returns the boolean at position
i |
void |
readFields(java.io.DataInput in) |
void |
set(long i,
boolean b)
Sets the bit at position
i |
void |
write(java.io.DataOutput out) |
public BitArray()
public BitArray(long capacity)
capacity
- public void set(long i, boolean b)
i
i
- b
- public boolean get(long i)
i
i
- public void write(java.io.DataOutput out) throws java.io.IOException
java.io.IOException
public void readFields(java.io.DataInput in) throws java.io.IOException
java.io.IOException