Package gg.xp.util

Class BitField

java.lang.Object
gg.xp.util.BitField

public class BitField extends Object
  • Constructor Details

    • BitField

      public BitField()
      Creates a BitField where all values are initially false
  • Method Details

    • fromLong

      public static BitField fromLong(Collection<Long> longs)
    • fromInts

      public static BitField fromInts(Collection<Integer> ints)
    • get

      public boolean get(int index)
    • get

      public boolean get(long index)
    • set

      public boolean set(int index, boolean value)
    • set

      public boolean set(long index, boolean value)
    • isValidIndex

      public boolean isValidIndex(long index)
    • assertValidIndex

      public static void assertValidIndex(long index)
    • ensureSize

      public void ensureSize(long index)