Iterator<T>, ListIterator<T>public final class ImmutableListIterator<T> extends ImmutableIterator<T> implements ListIterator<T>
| Constructor | Description |
|---|---|
ImmutableListIterator(List<T> list,
int index) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(T o) |
|
boolean |
hasPrevious() |
|
int |
nextIndex() |
|
T |
previous() |
|
int |
previousIndex() |
|
void |
set(T o) |
hasNext, next, removeforEachRemaininghasNext, next, removepublic boolean hasPrevious()
hasPrevious in interface ListIterator<T>public T previous()
previous in interface ListIterator<T>public int nextIndex()
nextIndex in interface ListIterator<T>public int previousIndex()
previousIndex in interface ListIterator<T>public void set(T o)
set in interface ListIterator<T>public void add(T o)
add in interface ListIterator<T>Copyright © 2004–2019. All rights reserved.