Iterator<T>, ListIterator<T>public final class MutableListIterator<T> extends MutableIterator<T> implements ListIterator<T>
| Constructor | Description |
|---|---|
MutableListIterator(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) |
forEachRemaininghasNext, next, removehasNext, 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–2017. All rights reserved.