T - The element type of the list iteratorpublic class ReverseListIterator<T> extends FilterListIterator<T>
ListIterator that reverses the direction of all operations
of a delegate ListIterator.delegate| Constructor and Description |
|---|
ReverseListIterator(java.util.ListIterator<T> delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Calls
FilterListIterator.delegate.ListIterator.hasPrevious() |
boolean |
hasPrevious()
Calls
FilterListIterator.delegate.ListIterator.hasNext() |
T |
next()
Calls
FilterListIterator.delegate.ListIterator.previous() |
int |
nextIndex()
Throws an
UnsupportedOperationException. |
T |
previous()
Calls
FilterListIterator.delegate.ListIterator.next() |
int |
previousIndex()
Throws an
UnsupportedOperationException. |
add, remove, setpublic ReverseListIterator(java.util.ListIterator<T> delegate)
public boolean hasNext()
FilterListIterator.delegate.ListIterator.hasPrevious()hasNext in interface java.util.Iterator<T>hasNext in interface java.util.ListIterator<T>hasNext in class FilterListIterator<T>public boolean hasPrevious()
FilterListIterator.delegate.ListIterator.hasNext()hasPrevious in interface java.util.ListIterator<T>hasPrevious in class FilterListIterator<T>public T next()
FilterListIterator.delegate.ListIterator.previous()next in interface java.util.Iterator<T>next in interface java.util.ListIterator<T>next in class FilterListIterator<T>public T previous()
FilterListIterator.delegate.ListIterator.next()previous in interface java.util.ListIterator<T>previous in class FilterListIterator<T>public int nextIndex()
UnsupportedOperationException.nextIndex in interface java.util.ListIterator<T>nextIndex in class FilterListIterator<T>public int previousIndex()
UnsupportedOperationException.previousIndex in interface java.util.ListIterator<T>previousIndex in class FilterListIterator<T>