Package gg.xp.util
Class BitField
java.lang.Object
gg.xp.util.BitField
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertValidIndex
(long index) void
ensureSize
(long index) static BitField
fromInts
(Collection<Integer> ints) static BitField
fromLong
(Collection<Long> longs) boolean
get
(int index) boolean
get
(long index) boolean
isValidIndex
(long index) boolean
set
(int index, boolean value) boolean
set
(long index, boolean value)
-
Constructor Details
-
BitField
public BitField()Creates a BitField where all values are initially false
-
-
Method Details
-
fromLong
-
fromInts
-
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)
-