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()
|
boolean |
hasPrevious()
|
T |
next()
|
int |
nextIndex()
Throws an
UnsupportedOperationException . |
T |
previous()
|
int |
previousIndex()
Throws an
UnsupportedOperationException . |
add, remove, set
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public 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 © 2001–2016. All rights reserved.