| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| protected abstract E | Returns: the cast object, ornullthe object to cast obj)Get the item (cast to the correct |
| protected abstract This | |
| public final Comparator | Returns: nullImplements java. null comparator, indicating that this set is always sorted in natural order.
|
| public final This | |
| public final boolean | Returns: true if the flag is contained by this setthe flag flag)Determine if this flag set contains the given flag. |
| public final boolean | Returns: true if the object is contained by this setthe object o)Overrides java. Implements java. |
| public final boolean | Returns: true if all of the collection's objects are contained by this setthe collection c)Overrides java. Implements java. |
| public final boolean | Returns: true if all of the given set's flags are contained by this setthe flag set other)Determine if this flag set contains all of the flags in the given flag set. |
| public final boolean | Returns: true if all of the given flags are contained by this setthe first flag flag1, E the second flag flag2)Determine if this flag set contains all of the given flags. |
| public final boolean | Returns: true if all of the given flags are contained by this setthe first flag flag1, E the second flag flag2, E the third flag flag3)Determine if this flag set contains all of the given flags. |
| public final boolean | Returns: true if all of the given set's flags are contained by this setthe flag set other)Determine if this flag set contains any of the flags in the given flag set. |
| public final boolean | Returns: true if any of the given flags are contained by this setthe first flag flag1, E the second flag flag2)Determine if this flag set contains any of the given flags. |
| public final boolean | Returns: true if any of the given flags are contained by this setthe first flag flag1, E the second flag flag2, E the third flag flag3)Determine if this flag set contains any of the given flags. |
| public final Iterator | |
| public final boolean | Returns: true if the object is equal to this set, false otherwisethe other object o)Overrides java. Implements java. |
| public final boolean | |
| public final boolean | Returns: true if the flag set is equal to this set, false otherwisethe other flag set o)Determine if this flag set is equal to the given flag set. |
| public final E | |
| public void | forEach(final Consumer<? super E>
the action to apply action)Overrides default java. |
| public final int | Returns: the flag set hash codeOverrides java. Implements java. |
| public final This | Returns: the subsetthe "to" element (must not be toElement)null)Implements java. |
| public boolean | Returns: true if the flag set is empty, false otherwiseOverrides java. Implements java. |
| protected abstract E | |
| public final Iterator | Returns: the iteratorImplements abstract java. Implements java. |
| public final E | |
| public final int | Returns: the flag set sizeImplements abstract java. Implements java. |
| public final This | Returns: the subsetthe "from" element (must not be fromElement, final E null)the "to" element (must not be toElement)null)Implements java. fromElement up to (but not including) toElement.
|
| public final This | Returns: the subsetthe "from" element (must not be fromElement)null)Implements java. |
| protected abstract This | |
| public final Object[] | Returns: theObject arrayOverrides java. Implements java. Object array containing all the flag values of this set.
|
| public final < the element type T> T[] | Returns: the populated arraythe array to populate or clone array)Overrides java. Implements java. |
| public final String | Returns: the string representationOverrides java. |
| protected abstract This | Returns: the set instancethe bit combination (possibly with extra bits) bits)Get the set value of the given bit combination. |
| public final This | Returns: the combined setthe additional flag flag)Return a set which includes all of the flags in this set and the given additional flag. |
| public final This | Returns: the combined setthe first flag flag1, E the second flag flag2)Return a set which includes all of the flags in this set and the given additional flags. |
| public final This | Returns: the combined setthe first flag flag1, E the second flag flag2, E the third flag flag3)Return a set which includes all of the flags in this set and the given additional flags. |
| public final This | Returns: the combined setthe additional flags flags)Return a set which includes all of the flags in this set and the given additional flags. |
| public final This | Returns: the combined setthe additional flags other)Return a set which includes all of the flags in this set and the given additional flags. |
| public final This | Returns: the reduced setthe flag flag)Return a set which includes all of the flags except for the given flag. |
| public final This | Returns: the reduced setthe flags other)Return a set which includes all of the flags except for the given flags. |
| bits | back to summary |
|---|---|
| pack-priv final int bits | |
| Flags | back to summary |
|---|---|
| protected Flags(final int bits) Construct a new instance. This constructor should only be called during initial array construction.
| |
| bitOf | back to summary |
|---|---|
| private static int bitOf(Enum<?> item) | |
| castItemOrNull | back to summary |
|---|---|
| protected abstract E castItemOrNull(Object obj) Get the item (cast to the correct
| |
| castThis | back to summary |
|---|---|
| protected abstract This castThis(Object obj) Cast the given object to this class, throwing an exception if the cast fails.
| |
| comparator | back to summary |
|---|---|
| public final Comparator Implements java. Get the
| |
| complement | back to summary |
|---|---|
| public final This complement() Get the complement of this set.
| |
| contains | back to summary |
|---|---|
| public final boolean contains(E flag) Determine if this flag set contains the given flag.
| |
| contains | back to summary |
|---|---|
| public final boolean contains(final Object o) Overrides java. Implements java. Determine if this flag set contains the given object.
| |
| containsAll | back to summary |
|---|---|
| public final boolean containsAll(final Collection<?> c) Overrides java. Implements java. Determine if this flag set contains all of the objects in the given collection.
| |
| containsAll | back to summary |
|---|---|
| public final boolean containsAll(This other) Determine if this flag set contains all of the flags in the given flag set.
| |
| containsAll | back to summary |
|---|---|
| public final boolean containsAll(E flag1, E flag2) Determine if this flag set contains all of the given flags.
| |
| containsAll | back to summary |
|---|---|
| public final boolean containsAll(E flag1, E flag2, E flag3) Determine if this flag set contains all of the given flags.
| |
| containsAny | back to summary |
|---|---|
| public final boolean containsAny(This other) Determine if this flag set contains any of the flags in the given flag set.
| |
| containsAny | back to summary |
|---|---|
| public final boolean containsAny(E flag1, E flag2) Determine if this flag set contains any of the given flags.
| |
| containsAny | back to summary |
|---|---|
| public final boolean containsAny(E flag1, E flag2, E flag3) Determine if this flag set contains any of the given flags.
| |
| descendingIterator | back to summary |
|---|---|
| public final Iterator Iterate this set in order from last to first flag.
| |
| equals | back to summary |
|---|---|
| public final boolean equals(final Object o) Overrides java. Implements java. Determine if this flag set is equal to the given object.
| |
| equals | back to summary |
|---|---|
| public final boolean equals(final Set<?> o) Determine if this flag set is equal to the given set.
| |
| equals | back to summary |
|---|---|
| public final boolean equals(final This o) Determine if this flag set is equal to the given flag set.
| |
| first | back to summary |
|---|---|
| public final E first() Implements java. Get the first flag in the set.
| |
| forEach | back to summary |
|---|---|
| public void forEach(final Consumer<? super E> action) Overrides default java. Apply the given action for every flag in this set.
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Overrides java. Implements java. Get the hash code of this flag set.
| |
| headSet | back to summary |
|---|---|
| public final This headSet(final E toElement) Implements java. Get the subset of flags from this set, up to (but not including) the given element.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides java. Implements java. Determine if this flag set is empty.
| |
| itemOf | back to summary |
|---|---|
| protected abstract E itemOf(int index) Get the flag item with the given index.
| |
| iterator | back to summary |
|---|---|
| public final Iterator Implements abstract java. Implements java. Iterate this set in order from first to last flag.
| |
| last | back to summary |
|---|---|
| public final E last() Implements java. Get the last flag in the set.
| |
| size | back to summary |
|---|---|
| public final int size() Implements abstract java. Implements java. Get the size of the flag set.
| |
| subSet | back to summary |
|---|---|
| public final This subSet(final E fromElement, final E toElement) Implements java. Get the subset of flags, starting from
| |
| tailSet | back to summary |
|---|---|
| public final This tailSet(final E fromElement) Implements java. Get the subset of flags from this set, starting from the given element.
| |
| this_ | back to summary |
|---|---|
| protected abstract This this_() Return
| |
| toArray | back to summary |
|---|---|
| public final Object[] toArray() Overrides java. Implements java. Get an
| |
| toArray | back to summary |
|---|---|
| public final <T> T[] toArray(T[] array) Overrides java. Implements java. Get a typed array containing all the flag values of this set.
| |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Get a string representation of this flag set.
| |
| value | back to summary |
|---|---|
| protected abstract This value(int bits) Get the set value of the given bit combination. The bit combination may contain extraneous one-bits so any bits beyond the bit of the last flag should be masked off if an array is used for lookup.
| |
| with | back to summary |
|---|---|
| public final This with(E flag) Return a set which includes all of the flags in this set and the given additional flag.
| |
| with | back to summary |
|---|---|
| public final This with(E flag1, E flag2) Return a set which includes all of the flags in this set and the given additional flags.
| |
| with | back to summary |
|---|---|
| public final This with(E flag1, E flag2, E flag3) Return a set which includes all of the flags in this set and the given additional flags.
| |
| with | back to summary |
|---|---|
| public final This with(E... flags) Return a set which includes all of the flags in this set and the given additional flags.
| |
| with | back to summary |
|---|---|
| public final This with(This other) Return a set which includes all of the flags in this set and the given additional flags.
| |
| without | back to summary |
|---|---|
| public final This without(E flag) Return a set which includes all of the flags except for the given flag.
| |
| without | back to summary |
|---|---|
| public final This without(This other) Return a set which includes all of the flags except for the given flags.
| |