K - the type of the keys in the map
V - the type of the values in the map
public interface OrderedMapIterator<K,V> extends MapIterator<K ,V>, OrderedIterator <K>
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.
|
K |
previous()
Gets the previous
key from the
Map.
|
getKey, getValue, hasNext, next, remove, setValueforEachRemainingboolean hasPrevious()
hasPrevious in interface
OrderedIterator<K>
true if the iterator has a previous element
K previous()
Map.
previous in interface
OrderedIterator<K>
NoSuchElementException - if the iteration is finished