ImmutableList with exactly one element.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final transient E |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public E | get(int
index of the element to return index)Implements java. |
| 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()
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.
|
| public ImmutableList | subList(int
low endpoint (inclusive) of the subList fromIndex, int high endpoint (exclusive) of the subList toIndex)Overrides com. Implements java. fromIndex, inclusive,
and toIndex, exclusive.
|
| public String | toString()
Overrides java. |
| element | back to summary |
|---|---|
| pack-priv final transient E element | |
| SingletonImmutableList | back to summary |
|---|---|
| pack-priv SingletonImmutableList(E element) | |
| get | back to summary |
|---|---|
| public E get(int index) Implements java. Doc from java. Returns the element at the specified position in this list.
| |
| isPartialView | back to summary |
|---|---|
| pack-priv boolean isPartialView() Implements abstract com. Doc from com. Returns
| |
| iterator | back to summary |
|---|---|
| public UnmodifiableIterator Overrides com. Implements java. Doc from java. Returns an iterator over the elements in this list in proper sequence.
| |
| 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
| |
| subList | back to summary |
|---|---|
| public ImmutableList Overrides com. Implements java. Doc from com. Returns an immutable list of the elements between the specified
| |
| 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
( | |