Class FlatBitsetUtil
java.lang.Object
ca.spottedleaf.concurrentutil.util.FlatBitsetUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic int[]bitsetToInts(long[] bitset) static voidclearRange(long[] bitset, int from, int to) static intfirstClear(long[] bitset, int from, int to) static intfirstSet(long[] bitset, int from, int to) static booleanget(long[] bitset, int index) static long[]intsToBitset(int[] ints) static booleanisRangeSet(long[] bitset, int from, int to)
-
Method Details
-
bitsetToInts
public static int[] bitsetToInts(long[] bitset) -
intsToBitset
public static long[] intsToBitset(int[] ints) -
get
public static boolean get(long[] bitset, int index) -
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)
-