T - The element type of the list iteratorIterator<T>, ListIterator<T>public class ReverseListIterator<T> extends FilterListIterator<T>
ListIterator that reverses the direction of all operations
of a delegate ListIterator.delegate| Constructor | Description |
|---|---|
ReverseListIterator(ListIterator<T> delegate) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
hasNext() |
|
boolean |
hasPrevious() |
|
T |
next() |
|
int |
nextIndex() |
Throws an
UnsupportedOperationException. |
T |
previous() |
|
int |
previousIndex() |
Throws an
UnsupportedOperationException. |
add, remove, setforEachRemainingpublic 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–2019. All rights reserved.