ImmutableSet with two or more elements.
| Modifier and Type | Field and Description |
|---|---|
| private final transient Object[] | |
| pack-priv static final RegularImmutableSet | |
| private static final Object[] | |
| private final transient int | |
| private final transient int | |
| pack-priv final transient @Nullable Object[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | contains(Object
element whose presence in this set is to be tested target)Implements abstract com. Implements java. true if this set contains the specified element.
|
| pack-priv int | |
| pack-priv ImmutableList | |
| public int | hashCode()
Overrides com. Implements java. |
| pack-priv Object[] | internalArray()
Overrides com. |
| pack-priv int | internalArrayEnd()
Overrides com. |
| pack-priv int | internalArrayStart()
Overrides com. |
| 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. |
| public int | size()
Implements abstract java. Implements java. |
| public Spliterator | spliterator()
Overrides com. Overrides default java. Spliterator over the elements in this set.
|
| pack-priv Object |
| elements | back to summary |
|---|---|
| private final transient Object[] elements | |
| EMPTY | back to summary |
|---|---|
| pack-priv static final RegularImmutableSet<Object> EMPTY | |
| EMPTY_ARRAY | back to summary |
|---|---|
| private static final Object[] EMPTY_ARRAY Hides com. | |
| hashCode | back to summary |
|---|---|
| private final transient int hashCode | |
| mask | back to summary |
|---|---|
| private final transient int mask | |
| table | back to summary |
|---|---|
| pack-priv final transient @Nullable Object[] table
| |
| RegularImmutableSet | back to summary |
|---|---|
| pack-priv RegularImmutableSet(Object[] elements, int hashCode, @Nullable Object[] table, int mask) | |
| contains | back to summary |
|---|---|
| public boolean contains(Object target) Implements abstract com. Implements java. Doc from java. Returns | |
| copyIntoArray | back to summary |
|---|---|
pack-priv int copyIntoArray(@Nullable Object[] dst, int offset)
| |
| createAsList | back to summary |
|---|---|
| pack-priv ImmutableList Overrides com.
| |
| 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
| |
| internalArray | back to summary |
|---|---|
| pack-priv Object[] internalArray() Overrides com. Doc from com. If this collection is backed by an array of its elements in insertion order, returns it.
| |
| internalArrayEnd | back to summary |
|---|---|
| pack-priv int internalArrayEnd() Overrides com. Doc from com. If this collection is backed by an array of its elements in insertion order, returns the offset where this collection's elements end.
| |
| internalArrayStart | back to summary |
|---|---|
| pack-priv int internalArrayStart() Overrides com. Doc from com. If this collection is backed by an array of its elements in insertion order, returns the offset where this collection's elements start.
| |
| 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).
| |
| 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
| |
| writeReplace | back to summary |
|---|---|
| pack-priv Object writeReplace() Overrides com.
| |