Class CountedBitSet

  • public final class CountedBitSet
    extends java.lang.Object
    A 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 Summary

      Constructor Description
      CountedBitSet​(short numBits)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean get​(int index)  
      void set​(int index)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CountedBitSet

        public CountedBitSet​(short numBits)
    • Method Detail

      • get

        public boolean get​(int index)
      • set

        public void set​(int index)