K
- the type of the keys in the mapV
- the type of the values in the mapjava.util.Iterator<K>
, MapIterator<K,V>
, OrderedIterator<K>
AbstractLinkedMap.LinkMapIterator
, AbstractOrderedMapIteratorDecorator
, AbstractSortedMapDecorator.SortedMapIterator
, DualTreeBidiMap.BidiOrderedMapIterator
, EmptyOrderedMapIterator
, UnmodifiableOrderedMapIterator
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 | 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 . |
boolean hasPrevious()
hasPrevious
in interface OrderedIterator<K>
true
if the iterator has a previous elementK previous()
Map
.previous
in interface OrderedIterator<K>
java.util.NoSuchElementException
- if the iteration is finishedCopyright © 2001-2019 - Apache Software Foundation