| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(T o)
Implements java. Inserts the specified element into the list (optional operation). |
| public boolean | hasPrevious()
Implements java. Returns |
| public int | nextIndex()
Implements java. Returns the index of the element that would be returned by a
subsequent call to |
| public T | previous()
Implements java. Returns the previous element in the list and moves the cursor position backwards. |
| public int | previousIndex()
Implements java. Returns the index of the element that would be returned by a
subsequent call to |
| public void | set(T o)
Implements java. Replaces the last element returned by |
| ImmutableListIterator | back to summary |
|---|---|
| public ImmutableListIterator(List<T> list, int index) | |
| add | back to summary |
|---|---|
| public void add(T o) Implements java. Doc from java. Inserts the specified element into the list (optional operation).
The element is inserted immediately before the element that
would be returned by
| |
| hasPrevious | back to summary |
|---|---|
| public boolean hasPrevious() Implements java. Doc from java. Returns
| |
| nextIndex | back to summary |
|---|---|
| public int nextIndex() Implements java. Doc from java. Returns the index of the element that would be returned by a
subsequent call to
| |
| previous | back to summary |
|---|---|
| public T previous() Implements java. Doc from java. Returns the previous element in the list and moves the cursor
position backwards. This method may be called repeatedly to
iterate through the list backwards, or intermixed with calls to
| |
| previousIndex | back to summary |
|---|---|
| public int previousIndex() Implements java. Doc from java. Returns the index of the element that would be returned by a
subsequent call to
| |
| set | back to summary |
|---|---|
| public void set(T o) Implements java. Doc from java. Replaces the last element returned by
| |