public interface OrderedIterator extends Iterator
This iterator allows both forward and reverse iteration through the collection.
Modifier and Type | Method and Description |
---|---|
boolean |
hasPrevious()
Checks to see if there is a previous element that can be iterated to.
|
Object |
previous()
Gets the previous element from the collection.
|
forEachRemaining, hasNext, next, remove
boolean hasPrevious()
true
if the iterator has a previous elementObject previous()
NoSuchElementException
- if the iteration is finishedCopyright © 2001–2017 The Apache Software Foundation. All rights reserved.