public class ReverseListIterator extends FilterListIterator
ListIterator that reverses the direction of all operations
of a delegate ListIterator.delegate| Constructor and Description |
|---|
ReverseListIterator(java.util.ListIterator delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Calls
FilterListIterator.delegate.ListIterator.hasPrevious() |
boolean |
hasPrevious()
Calls
FilterListIterator.delegate.ListIterator.hasNext() |
java.lang.Object |
next()
Calls
FilterListIterator.delegate.ListIterator.previous() |
int |
nextIndex()
Throws an
UnsupportedOperationException. |
java.lang.Object |
previous()
Calls
FilterListIterator.delegate.ListIterator.next() |
int |
previousIndex()
Throws an
UnsupportedOperationException. |
add, remove, setpublic boolean hasNext()
FilterListIterator.delegate.ListIterator.hasPrevious()hasNext in interface java.util.IteratorhasNext in interface java.util.ListIteratorhasNext in class FilterListIteratorpublic boolean hasPrevious()
FilterListIterator.delegate.ListIterator.hasNext()hasPrevious in interface java.util.ListIteratorhasPrevious in class FilterListIteratorpublic java.lang.Object next()
FilterListIterator.delegate.ListIterator.previous()next in interface java.util.Iteratornext in interface java.util.ListIteratornext in class FilterListIteratorpublic java.lang.Object previous()
FilterListIterator.delegate.ListIterator.next()previous in interface java.util.ListIteratorprevious in class FilterListIteratorpublic int nextIndex()
UnsupportedOperationException.nextIndex in interface java.util.ListIteratornextIndex in class FilterListIteratorpublic int previousIndex()
UnsupportedOperationException.previousIndex in interface java.util.ListIteratorpreviousIndex in class FilterListIterator