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, set
public boolean hasNext()
FilterListIterator.delegate
.ListIterator.hasPrevious()
hasNext
in interface java.util.Iterator
hasNext
in interface java.util.ListIterator
hasNext
in class FilterListIterator
public boolean hasPrevious()
FilterListIterator.delegate
.ListIterator.hasNext()
hasPrevious
in interface java.util.ListIterator
hasPrevious
in class FilterListIterator
public java.lang.Object next()
FilterListIterator.delegate
.ListIterator.previous()
next
in interface java.util.Iterator
next
in interface java.util.ListIterator
next
in class FilterListIterator
public java.lang.Object previous()
FilterListIterator.delegate
.ListIterator.next()
previous
in interface java.util.ListIterator
previous
in class FilterListIterator
public int nextIndex()
UnsupportedOperationException
.nextIndex
in interface java.util.ListIterator
nextIndex
in class FilterListIterator
public int previousIndex()
UnsupportedOperationException
.previousIndex
in interface java.util.ListIterator
previousIndex
in class FilterListIterator
Copyright © 2001-2012. All Rights Reserved.