Class FlatBitsetUtil

java.lang.Object
ca.spottedleaf.common.util.FlatBitsetUtil

public final class FlatBitsetUtil extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    and(long[] bitset, int index, boolean value)
     
    static int[]
    bitsetToInts(long[] bitset)
     
    static void
    clear(long[] bitset, int index)
     
    static void
    clearRange(long[] bitset, int from, int to)
     
    static int
    firstClear(long[] bitset, int from, int to)
     
    static int
    firstSet(long[] bitset, int from, int to)
     
    static boolean
    getChecked(long[] bitset, int index)
     
    static boolean
    getUnchecked(long[] bitset, int index)
     
    static long[]
    intsToBitset(int[] ints)
     
    static boolean
    isRangeSet(long[] bitset, int from, int to)
     
    static void
    or(long[] bitset, int index, boolean value)
     
    static void
    set(long[] bitset, int index)
     
    static int
    sizeBitset(int size)
     
    static void
    xor(long[] bitset, int index, boolean value)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • bitsetToInts

      public static int[] bitsetToInts(long[] bitset)
    • intsToBitset

      public static long[] intsToBitset(int[] ints)
    • getChecked

      public static boolean getChecked(long[] bitset, int index)
    • getUnchecked

      public static boolean getUnchecked(long[] bitset, int index)
    • sizeBitset

      public static int sizeBitset(int size)
    • set

      public static void set(long[] bitset, int index)
    • clear

      public static void clear(long[] bitset, int index)
    • or

      public static void or(long[] bitset, int index, boolean value)
    • xor

      public static void xor(long[] bitset, int index, boolean value)
    • and

      public static void and(long[] bitset, int index, boolean value)
    • firstSet

      public static int firstSet(long[] bitset, int from, int to)
    • firstClear

      public static int firstClear(long[] bitset, int from, int to)
    • clearRange

      public static void clearRange(long[] bitset, int from, int to)
    • isRangeSet

      public static boolean isRangeSet(long[] bitset, int from, int to)