Class EnumBitSet<E extends Enum<E>>
java.lang.Object
org.ojalgo.type.EnumBitSet<E>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate longStores the 64 boolean values -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidclear()Clears all bits, setting all booleans to false(package private) booleanget(long mask) Get the boolean value corresponding to the maskboolean(package private) longReturns the internal long value (optional, useful for debugging or serialization)private static long(package private) voidset(long mask, boolean value) Set the boolean value corresponding to the maskvoid(package private) voidsetBitSet(long bitSet) Sets the internal long value directly (optional, useful for debugging or deserialization)
-
Field Details
-
MASK_MUST_HAVE_EXACTLY_ONE_BIT_SET
- See Also:
-
myBitSet
private long myBitSetStores the 64 boolean values
-
-
Constructor Details
-
EnumBitSet
public EnumBitSet()
-
-
Method Details
-
mask
-
get
-
set
-
clear
void clear()Clears all bits, setting all booleans to false -
get
boolean get(long mask) Get the boolean value corresponding to the mask -
getBitSet
long getBitSet()Returns the internal long value (optional, useful for debugging or serialization) -
set
void set(long mask, boolean value) Set the boolean value corresponding to the mask -
setBitSet
void setBitSet(long bitSet) Sets the internal long value directly (optional, useful for debugging or deserialization)
-