
E - Element typepublic class ReverseListIterator<E> extends Object implements Iterator<E>, ListIterator<E>
| Modifier and Type | Field and Description |
|---|---|
(package private) ListIterator<E> |
iter
The actual iterator
|
| Constructor and Description |
|---|
ReverseListIterator(List<E> list)
Constructor.
|
ReverseListIterator(ListIterator<E> iter)
Constructor.
|
final ListIterator<E> iter
public ReverseListIterator(ListIterator<E> iter)
iter - List iteratorpublic boolean hasNext()
public E next()
public void remove()
public boolean hasPrevious()
hasPrevious in interface ListIterator<E>public E previous()
previous in interface ListIterator<E>public int nextIndex()
nextIndex in interface ListIterator<E>public int previousIndex()
previousIndex in interface ListIterator<E>public void set(E e)
set in interface ListIterator<E>public void add(E e)
add in interface ListIterator<E>