public class BitArray
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
arraySize |
private int |
bitsPerEntry |
private long[] |
longArray |
private long |
maxEntryValue |
Constructor and Description |
---|
BitArray(int bitsPerEntryIn,
int arraySizeIn) |
BitArray(int bitsPerEntryIn,
int arraySizeIn,
long[] data) |
Modifier and Type | Method and Description |
---|---|
int |
bitsPerEntry() |
void |
getAll(java.util.function.IntConsumer consumer) |
int |
getAt(int index) |
long[] |
getBackingLongArray() |
void |
setAt(int index,
int value) |
int |
size() |
int |
swapAt(int index,
int value) |
private final long[] longArray
private final int bitsPerEntry
private final long maxEntryValue
private final int arraySize
public BitArray(int bitsPerEntryIn, int arraySizeIn)
public BitArray(int bitsPerEntryIn, int arraySizeIn, long[] data)
public int swapAt(int index, int value)
public void setAt(int index, int value)
public int getAt(int index)
public long[] getBackingLongArray()
public int size()
public int bitsPerEntry()
public void getAll(java.util.function.IntConsumer consumer)