E - The type of the enum this EnumBitSet applies topublic class EnumBitSet<E extends Enum> extends Object
| Constructor and Description |
|---|
EnumBitSet()
Constructs an empty
EnumBitSet |
EnumBitSet(int level)
Constructs a new
EnumBitSet with the passed constant level |
| Modifier and Type | Method and Description |
|---|---|
void |
add(E t)
Adds a constant to this set.
|
void |
clear()
Clears the current set of all constants
|
long |
getLevel()
Returns the underlying level representing this set, for use in storage
|
boolean |
has(E t)
Returns
true if this set contains the constant |
void |
remove(E t)
Removes a constant from this set.
|
Set<E> |
toSet(Class<E> clazz)
Converts this
EnumBitSet into a EnumSet containing all
the elements that this set "has". |
public EnumBitSet()
EnumBitSetpublic EnumBitSet(int level)
EnumBitSet with the passed constant levellevel - The previous internal level used for this setpublic boolean has(E t)
true if this set contains the constantt - The constant to check fortrue if this set contains the constantpublic void add(E t)
t - The constant to addpublic void remove(E t)
t - The constant to removepublic void clear()
public long getLevel()
Copyright © 2017. All rights reserved.