ImmutableAsList implementation specialized for when the delegate collection is already
backed by an ImmutableList or array.
| Modifier and Type | Field and Description |
|---|---|
| private final ImmutableCollection | |
| private final ImmutableList |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| pack-priv ImmutableCollection | delegateCollection()
Implements abstract com. |
| pack-priv ImmutableList | |
| public void | forEach(Consumer<? super E>
The action to be performed for each element action)Overrides com. Overrides default java. Iterable
until all elements have been processed or the action throws an
exception.
|
| public E | get(int
index of the element to return index)Implements java. |
| pack-priv Object[] | internalArray()
Overrides com. |
| pack-priv int | internalArrayEnd()
Overrides com. |
| pack-priv int | internalArrayStart()
Overrides com. |
| public UnmodifiableListIterator | listIterator(int
index of the first element to be returned from the
list iterator (by a call to index)next)Overrides com. Implements java. |
| pack-priv Object |
| delegate | back to summary |
|---|---|
| private final ImmutableCollection<E> delegate | |
| delegateList | back to summary |
|---|---|
| private final ImmutableList<? extends E> delegateList | |
| RegularImmutableAsList | back to summary |
|---|---|
| pack-priv RegularImmutableAsList(ImmutableCollection<E> delegate, ImmutableList<? extends E> delegateList) | |
| RegularImmutableAsList | back to summary |
|---|---|
| pack-priv RegularImmutableAsList(ImmutableCollection<E> delegate, Object[] array) | |
| copyIntoArray | back to summary |
|---|---|
pack-priv int copyIntoArray(@Nullable Object[] dst, int offset)
| |
| delegateCollection | back to summary |
|---|---|
| pack-priv ImmutableCollection Implements abstract com.
| |
| delegateList | back to summary |
|---|---|
| pack-priv ImmutableList | |
| forEach | back to summary |
|---|---|
| public void forEach(Consumer<? super E> action) Overrides com. 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.
| |
| get | back to summary |
|---|---|
| public E get(int index) Implements java. Doc from java. Returns the element at the specified position in this list.
| |
| 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.
| |
| listIterator | back to summary |
|---|---|
| public UnmodifiableListIterator Overrides com. Implements java. Doc from java. Returns a list iterator over the elements in this list (in proper
sequence), starting at the specified position in the list.
The specified index indicates the first element that would be
returned by an initial call to
| |
| writeReplace | back to summary |
|---|---|
| pack-priv Object writeReplace() Overrides com.
| |