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