E
- the type of elements returned by this iteratorpublic interface OrderedIterator<E> extends Iterator<E>
ListIterator
.
This iterator allows both forward and reverse iteration through the container.
Modifier and Type | Method and Description |
---|---|
boolean |
hasPrevious()
Checks to see if there is a previous element that can be iterated to.
|
E |
previous()
Gets the previous element from the container.
|
forEachRemaining, hasNext, next, remove
boolean hasPrevious()
true
if the iterator has a previous elementE previous()
NoSuchElementException
- if the iteration is finishedCopyright © 2006–2022 Apache Software Foundation. All rights reserved.