public final class CountedBitSet
extends java.lang.Object
CountedBitSet
wraps a FixedBitSet
but automatically releases the internal bitset
when all bits are set to reduce memory usage. This structure can work well for sequence numbers as
these numbers are likely to form contiguous ranges (eg. filling all bits).Constructor | Description |
---|---|
CountedBitSet(short numBits) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
get(int index) |
|
void |
set(int index) |