Class BitArray

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, Releasable

    public final class BitArray
    extends java.lang.Object
    implements Releasable
    A bit array that is implemented using a growing LongArray created from BigArrays. The underlying long array grows lazily based on the biggest index that needs to be set.
    • Constructor Summary

      Constructors 
      Constructor Description
      BitArray​(int initialSize, BigArrays bigArrays)  
    • Method Summary

      Modifier and Type Method Description
      void clear​(int index)  
      void close()  
      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

      • BitArray

        public BitArray​(int initialSize,
                        BigArrays bigArrays)
    • Method Detail

      • set

        public void set​(int index)
      • clear

        public void clear​(int index)
      • get

        public boolean get​(int index)
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface Releasable