| Modifier and Type | Class and Description |
|---|---|
| protected static interface |
| Modifier and Type | Field and Description |
|---|---|
| private final int | flags
Flag value. |
| private final String | name
Name of the flag/flag set. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected | NamedIntegerBitmask(@Nullable String
The name of the flag / flag set. name, int The flag value. flags)Creates a new named flag. |
| Modifier and Type | Method and Description |
|---|---|
| protected final T | Returns: An instance combining both.The array of all defined flags, expected "none". allFlags, T The "none" flag set. flagsNone, NamedIntegerBitmask.The constructor. constr,The other flag / flag set to merge. other)Combines two flags / flag sets (use this to implement
|
| public abstract T | Returns: An instance combining both.The other flag / flag set. other)Combines two flags / flag sets. |
| public final boolean | |
| public final String | |
| protected static final < The subclass's type itself. T extends NamedIntegerBitmask | Returns: An instance representing the flag value.The array of all defined flags, expected "none". allFlags, T The "none" flag set. flagsNone, NamedIntegerBitmask.The constructor. constr,The flag value. v)Returns a |
| protected static final < The subclass's type itself. T extends NamedIntegerBitmask | Returns: An instance representing the flag values.The array of all defined flags, expected "none". allFlags, T The "none" flag set. flagsNone, NamedIntegerBitmask.The constructor. constr,The flags to set, potentially empty. setFlags)Returns a |
| public final String | |
| public final int |
| flags | back to summary |
|---|---|
| private final int flags Flag value. | |
| name | back to summary |
|---|---|
| private final String name Name of the flag/flag set. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| NamedIntegerBitmask | back to summary |
|---|---|
| protected NamedIntegerBitmask(@Nullable String name, int flags) Creates a new named flag. | |
| combineWith | back to summary |
|---|---|
| protected final T combineWith(T[] allFlags, T flagsNone, NamedIntegerBitmask. Combines two flags / flag sets (use this to implement
| |
| combineWith | back to summary |
|---|---|
| public abstract T combineWith(T other) Combines two flags / flag sets.
| |
| hasFlag | back to summary |
|---|---|
| public final boolean hasFlag(T flag) Checks if the given flag is set.
| |
| name | back to summary |
|---|---|
| public final String name() Returns the name of the flag / flag set.
| |
| resolve | back to summary |
|---|---|
| protected static final <T extends NamedIntegerBitmask Returns a
| |
| resolve | back to summary |
|---|---|
| protected static final <T extends NamedIntegerBitmask Returns a
| |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| value | back to summary |
|---|---|
| public final int value() Returns the value of the flag / flag set.
| |
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: The instance.The name. name, int The flag value. flags)Creates a new instance. |
| newInstance | back to summary |
|---|---|
| public T newInstance(@Nullable String name, int flags) Creates a new instance. | |