Class HybridBitSet

  • Direct Known Subclasses:
    EmptyHybridBitSet

    public class HybridBitSet
    extends java.lang.Object
    The HybridBitSet is a random access (doesn't support iteration) BitSet implementation that uses a FixedBitSet for the first N bits and a HashSet for higher bits. This is designed to provide a balance between the high performance of FixedBitSet and the efficient sparse behavior of a HashSet.
    • Constructor Summary

      Constructors 
      Constructor Description
      HybridBitSet()  
    • Method Summary

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

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

      • HybridBitSet

        public HybridBitSet()
    • Method Detail

      • set

        public void set​(long bit)
      • get

        public boolean get​(long bit)