Package com.fastasyncworldedit.core.math
Class FastBitSet
java.lang.Object
com.fastasyncworldedit.core.math.FastBitSet
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
and
(long[] bits, long[] other) void
and
(FastBitSet other) int
void
clear
(int i) static void
clear
(long[] bits, int i) void
clearRange
(int b, int e) static void
clearRange
(long[] bits, int b, int e) static long[]
create
(int size) boolean
get
(int i) static boolean
get
(long[] bits, int i) iterator()
static void
or
(long[] bits, long[] other) void
or
(FastBitSet other) void
set
(int i) void
set
(int i, boolean v) static void
set
(long[] bits, int i) static void
set
(long[] bits, int i, boolean v) static void
setAll
(long[] bits) void
setRange
(int b, int e) static void
setRange
(long[] bits, int b, int e) int
size()
static void
unsetAll
(long[] bits)
-
Constructor Details
-
FastBitSet
public FastBitSet(int size) -
FastBitSet
public FastBitSet(long[] bits, int size)
-
-
Method Details
-
create
public static long[] create(int size) -
get
public static boolean get(long[] bits, int i) -
set
public static void set(long[] bits, int i) -
clear
public static void clear(long[] bits, int i) -
set
public static void set(long[] bits, int i, boolean v) -
setRange
public static void setRange(long[] bits, int b, int e) -
clearRange
public static void clearRange(long[] bits, int b, int e) -
setAll
public static void setAll(long[] bits) -
unsetAll
public static void unsetAll(long[] bits) -
and
public static void and(long[] bits, long[] other) -
or
public static void or(long[] bits, long[] other) -
get
public boolean get(int i) -
set
public void set(int i) -
clear
public void clear(int i) -
set
public void set(int i, boolean v) -
setRange
public void setRange(int b, int e) -
clearRange
public void clearRange(int b, int e) -
and
-
or
-
cardinality
public int cardinality() -
size
public int size() -
iterator
-