ImmutableList backed by a simple array.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final transient Object[] | |
| pack-priv static final ImmutableList |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| 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. |
| 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 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. |
| public int | size()
Implements abstract java. Implements java. |
| public Spliterator | spliterator()
Overrides com. Overrides default java. Spliterator over the elements in this list.
|
| array | back to summary |
|---|---|
| pack-priv final transient Object[] array
| |
| EMPTY | back to summary |
|---|---|
| pack-priv static final ImmutableList<Object> EMPTY | |
| RegularImmutableList | back to summary |
|---|---|
| pack-priv RegularImmutableList(Object[] array) | |
| copyIntoArray | back to summary |
|---|---|
pack-priv int copyIntoArray(@Nullable Object[] dst, int dstOff)
| |
| 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.
| |
| isPartialView | back to summary |
|---|---|
| pack-priv boolean isPartialView() Implements abstract com. Doc from com. Returns
| |
| 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
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this list. If this list contains
more than
| |
| spliterator | back to summary |
|---|---|
| public Spliterator Overrides com. Overrides default java. Doc from java. Creates a The
| |