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