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(ListIterator<T> delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Calls
FilterListIterator.delegate. |
boolean |
hasPrevious()
Calls
FilterListIterator.delegate. |
T |
next()
Calls
FilterListIterator.delegate. |
int |
nextIndex()
Throws an
UnsupportedOperationException. |
T |
previous()
Calls
FilterListIterator.delegate. |
int |
previousIndex()
Throws an
UnsupportedOperationException. |
add, remove, setclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic ReverseListIterator(ListIterator<T> delegate)
public boolean hasNext()
hasNext in interface Iterator<T>hasNext in interface ListIterator<T>hasNext in class FilterListIterator<T>public boolean hasPrevious()
hasPrevious in interface ListIterator<T>hasPrevious in class FilterListIterator<T>public T next()
next in interface Iterator<T>next in interface ListIterator<T>next in class FilterListIterator<T>public T previous()
previous in interface ListIterator<T>previous in class FilterListIterator<T>public int nextIndex()
UnsupportedOperationException.nextIndex in interface ListIterator<T>nextIndex in class FilterListIterator<T>public int previousIndex()
UnsupportedOperationException.previousIndex in interface ListIterator<T>previousIndex in class FilterListIterator<T>Copyright © 2019. All rights reserved.