ImmutableSet backed by a non-empty java.util.EnumSet .
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final transient EnumSet | |
| private transient int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static <E extends Enum | |
| public boolean | contains(Object
element whose presence in this set is to be tested object)Implements abstract com. Implements java. true if this set contains the specified element.
|
| public boolean | containsAll(Collection<?>
collection to be checked for containment in this set collection)Overrides java. Implements java. true if this set contains all of the elements of the
specified collection.
|
| public boolean | equals(Object
object to be compared for equality with this set object)Overrides com. Implements java. |
| public void | forEach(Consumer<? super E>
The action to be performed for each element action)Overrides default java. Iterable
until all elements have been processed or the action throws an
exception.
|
| public int | hashCode()
Overrides com. Implements java. |
| public boolean | isEmpty()
Overrides java. Implements java. true if this set contains no elements.
|
| pack-priv boolean | isHashCodeFast()
Overrides com. true if the hashCode() method runs quickly.
|
| pack-priv boolean | isPartialView()
Implements abstract com. true if this immutable collection's implementation contains references to
user-created objects that aren't accessible via this collection's methods.
|
| public UnmodifiableIterator | iterator()
Implements abstract com. Implements java. |
| private void | |
| public int | size()
Implements abstract java. Implements java. |
| public Spliterator | spliterator()
Overrides com. Overrides default java. Spliterator over the elements in this set.
|
| public String | toString()
Overrides java. |
| pack-priv Object |
| delegate | back to summary |
|---|---|
| private final transient EnumSet<E> delegate | |
| hashCode | back to summary |
|---|---|
| private transient int hashCode
| |
| ImmutableEnumSet | back to summary |
|---|---|
| private ImmutableEnumSet(EnumSet<E> delegate) | |
| asImmutable | back to summary |
|---|---|
| pack-priv static <E extends Enum | |
| contains | back to summary |
|---|---|
| public boolean contains(Object object) Implements abstract com. Implements java. Doc from java. Returns | |
| containsAll | back to summary |
|---|---|
| public boolean containsAll(Collection<?> collection) Overrides java. Implements java. Doc from java. Returns
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides com. Implements java. Doc from java. Compares the specified object with this set for equality. Returns
| |
| forEach | back to summary |
|---|---|
| public void forEach(Consumer<? super E> action) Overrides default java. Doc from java. Performs the given action for each element of the The behavior of this method is unspecified if the action performs side-effects that modify the underlying source of elements, unless an overriding class has specified a concurrent modification policy. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides com. Implements java. Doc from java. Returns the hash code value for this set. The hash code of a set is
defined to be the sum of the hash codes of the elements in the set,
where the hash code of a
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides java. Implements java. Doc from java. Returns
| |
| isHashCodeFast | back to summary |
|---|---|
| pack-priv boolean isHashCodeFast() Overrides com. Doc from com. Returns
| |
| isPartialView | back to summary |
|---|---|
| pack-priv boolean isPartialView() Implements abstract com. Doc from com. Returns
| |
| iterator | back to summary |
|---|---|
| public UnmodifiableIterator Implements abstract com. Implements java. Doc from java. Returns an iterator over the elements in this set. The elements are returned in no particular order (unless this set is an instance of some class that provides a guarantee).
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream stream) throws InvalidObjectException Hides com.
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this set (its cardinality). If this
set contains more than
| |
| spliterator | back to summary |
|---|---|
| public Spliterator Overrides com. Overrides default java. Doc from java. Creates a The
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of this collection. The string
representation consists of a list of the collection's elements in the
order they are returned by its iterator, enclosed in square brackets
( | |
| writeReplace | back to summary |
|---|---|
| pack-priv Object writeReplace() Overrides com.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final EnumSet | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Object |
| delegate | back to summary |
|---|---|
| pack-priv final EnumSet<E> delegate | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| EnumSerializedForm | back to summary |
|---|---|
| pack-priv EnumSerializedForm(EnumSet<E> delegate) | |
| readResolve | back to summary |
|---|---|
| pack-priv Object readResolve() | |