public final class EnumBitSet<E extends Enum<E>>
extends Object
Like a
BitSet but using an
Enum as indices. The
Enum cannot have more than 64
values as the internal storage is a single
long.
-
Constructor Summary
Constructors
-
Method Summary
boolean
void
set(E index,
boolean value)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
EnumBitSet
public EnumBitSet()
-
Method Details
-
get
public boolean get(E index)
-
set
public void set(E index,
boolean value)