Class FD_ALL3.Bitmap

  • Enclosing class:
    FD_ALL3

    public static class FD_ALL3.Bitmap
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.concurrent.atomic.AtomicIntegerArray bits  
      protected int index  
    • Constructor Summary

      Constructors 
      Constructor Description
      Bitmap​(int size)  
    • Field Detail

      • index

        protected volatile int index
      • bits

        protected final java.util.concurrent.atomic.AtomicIntegerArray bits
    • Constructor Detail

      • Bitmap

        public Bitmap​(int size)
    • Method Detail

      • getIndex

        public int getIndex()
      • needsToSuspect

        public boolean needsToSuspect()
        Returns true if all bits are 0, false otherwise
      • advance

        public FD_ALL3.Bitmap advance()
        Advances the index (mod length) and sets the bits[index] to 0
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toStringDetailed

        public java.lang.String toStringDetailed()