public final class NumericFlags extends Flags<E,This>
| Modifier and Type | Field | Description |
|---|---|---|
static NumericFlags |
NONE |
The empty set of numeric flags.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected NumericFlag |
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 NumericFlags |
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 NumericFlag |
itemOf(int index) |
Get the flag item with the given index.
|
static NumericFlags |
of(NumericFlag flag) |
|
static NumericFlags |
of(NumericFlag flag1,
NumericFlag flag2) |
|
protected NumericFlags |
this_() |
Return
this. |
protected NumericFlags |
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 NumericFlags NONE
public static NumericFlags of(NumericFlag flag)
public static NumericFlags of(NumericFlag flag1, NumericFlag flag2)
protected NumericFlags this_()
Flagsthis.this_ in class Flags<NumericFlag,NumericFlags>thisprotected NumericFlags value(int bits)
Flagsvalue in class Flags<NumericFlag,NumericFlags>bits - the bit combination (possibly with extra bits)protected NumericFlag itemOf(int index)
FlagsitemOf in class Flags<NumericFlag,NumericFlags>index - the indexprotected NumericFlag castItemOrNull(java.lang.Object obj)
Flagsenum type), or null if it is not of the correct type.castItemOrNull in class Flags<NumericFlag,NumericFlags>obj - the object to castnullprotected NumericFlags castThis(java.lang.Object obj)
FlagscastThis in class Flags<NumericFlag,NumericFlags>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.