public class ReverseIterator<T> extends ReferenceIterator<T>
Iterator that iterates over the elements of another Iterator in reverse order, by creating a
buffer over the elements in the Iterator and reversing the order of iteration.iterator| Constructor and Description |
|---|
ReverseIterator(java.util.Iterator<T> iterator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
T |
next() |
void |
remove() |