public final class GeneralFlags extends Flags<E,This>
| Modifier and Type | Field | Description |
|---|---|---|
static GeneralFlags |
NONE |
The empty set of general flags.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected GeneralFlag |
castItemOrNull(java.lang.Object obj) |
Get the item (cast to the correct
enum type), or null if it is not of the correct type. |
protected GeneralFlags |
castThis(java.lang.Object obj) |
Cast the given object to this class, throwing an exception if the cast fails.
|
void |
forbid(E flag) |
|
void |
forbidAll() |
|
void |
forbidAllBut(E flag) |
|
protected GeneralFlag |
itemOf(int index) |
Get the flag item with the given index.
|
static GeneralFlags |
of(GeneralFlag flag) |
|
static GeneralFlags |
of(GeneralFlag flag1,
GeneralFlag flag2) |
|
static GeneralFlags |
of(GeneralFlag flag1,
GeneralFlag flag2,
GeneralFlag flag3) |
|
protected GeneralFlags |
this_() |
Return
this. |
protected GeneralFlags |
value(int bits) |
Get the set value of the given bit combination.
|
comparator, complement, contains, contains, containsAll, containsAll, containsAll, containsAll, containsAny, containsAny, containsAny, descendingIterator, equals, equals, equals, first, forEach, hashCode, headSet, isEmpty, iterator, last, size, subSet, tailSet, toArray, toArray, toString, with, with, with, with, with, without, withoutpublic static final GeneralFlags NONE
public static GeneralFlags of(GeneralFlag flag)
public static GeneralFlags of(GeneralFlag flag1, GeneralFlag flag2)
public static GeneralFlags of(GeneralFlag flag1, GeneralFlag flag2, GeneralFlag flag3)
protected GeneralFlags this_()
Flagsthis.this_ in class Flags<GeneralFlag,GeneralFlags>thisprotected GeneralFlags value(int bits)
Flagsvalue in class Flags<GeneralFlag,GeneralFlags>bits - the bit combination (possibly with extra bits)protected GeneralFlag itemOf(int index)
FlagsitemOf in class Flags<GeneralFlag,GeneralFlags>index - the indexprotected GeneralFlag castItemOrNull(java.lang.Object obj)
Flagsenum type), or null if it is not of the correct type.castItemOrNull in class Flags<GeneralFlag,GeneralFlags>obj - the object to castnullprotected GeneralFlags castThis(java.lang.Object obj)
FlagscastThis in class Flags<GeneralFlag,GeneralFlags>obj - the object to castpublic final void forbidAll()
public final void forbidAllBut(E flag)
public void forbid(E flag)
Copyright © 2018 JBoss, a division of Red Hat, Inc.