Class BitArray


  • public class BitArray
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      BitArray​(int p_i46832_1_, int p_i46832_2_)  
      BitArray​(int p_i47901_1_, int p_i47901_2_, long[] p_i47901_3_)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private int cellIndex​(int p_232986_1_)  
      int get​(int p_188142_1_)  
      void getAll​(java.util.function.IntConsumer p_225421_1_)  
      int getAndSet​(int p_219789_1_, int p_219789_2_)  
      long[] getRaw()  
      int getSize()  
      void set​(int p_188141_1_, int p_188141_2_)  
      • Methods inherited from class java.lang.Object

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

      • MAGIC

        private static final int[] MAGIC
      • data

        private final long[] data
      • bits

        private final int bits
      • mask

        private final long mask
      • size

        private final int size
      • valuesPerLong

        private final int valuesPerLong
      • divideMul

        private final int divideMul
      • divideAdd

        private final int divideAdd
      • divideShift

        private final int divideShift
    • Constructor Detail

      • BitArray

        public BitArray​(int p_i46832_1_,
                        int p_i46832_2_)
      • BitArray

        public BitArray​(int p_i47901_1_,
                        int p_i47901_2_,
                        @Nullable
                        long[] p_i47901_3_)
    • Method Detail

      • cellIndex

        private int cellIndex​(int p_232986_1_)
      • getAndSet

        public int getAndSet​(int p_219789_1_,
                             int p_219789_2_)
      • set

        public void set​(int p_188141_1_,
                        int p_188141_2_)
      • get

        public int get​(int p_188142_1_)
      • getRaw

        public long[] getRaw()
      • getSize

        public int getSize()
      • getAll

        public void getAll​(java.util.function.IntConsumer p_225421_1_)