public interface OrderedMapIterator extends MapIterator, OrderedIterator
Map
.
This iterator allows both forward and reverse iteration through the map.
Modifier and Type | Method and Description |
---|---|
boolean |
hasPrevious()
Checks to see if there is a previous entry that can be iterated to.
|
Object |
previous()
Gets the previous key from the
Map . |
boolean hasPrevious()
hasPrevious
in interface OrderedIterator
true
if the iterator has a previous elementObject previous()
Map
.previous
in interface OrderedIterator
NoSuchElementException
- if the iteration is finishedCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.