Modifier and Type | Field and Description |
---|---|
private int |
bitsPerSlot |
private BitSet |
map |
Constructor and Description |
---|
BitMap2D(int sizeInSlots,
int bitsPerSlot) |
Modifier and Type | Method and Description |
---|---|
boolean |
at(int slotIndex,
int bitWithinSlotIndex) |
void |
atPutGrow(int slotIndex,
int bitWithinSlotIndex,
boolean value) |
private int |
bitIndex(int slotIndex,
int bitWithinSlotIndex) |
void |
clear() |
void |
clearBit(int slotIndex,
int bitWithinSlotIndex) |
boolean |
isValidIndex(int slotIndex,
int bitWithinSlotIndex) |
void |
setBit(int slotIndex,
int bitWithinSlotIndex) |
int |
sizeInBits() |
int |
sizeInSlots() |
private boolean |
verifyBitWithinSlotIndex(int index) |
private final int bitsPerSlot
public BitMap2D(int sizeInSlots, int bitsPerSlot)
private int bitIndex(int slotIndex, int bitWithinSlotIndex)
private boolean verifyBitWithinSlotIndex(int index)
public int sizeInBits()
public int sizeInSlots()
public boolean isValidIndex(int slotIndex, int bitWithinSlotIndex)
public boolean at(int slotIndex, int bitWithinSlotIndex)
public void setBit(int slotIndex, int bitWithinSlotIndex)
public void clearBit(int slotIndex, int bitWithinSlotIndex)
public void atPutGrow(int slotIndex, int bitWithinSlotIndex, boolean value)
public void clear()