K
- the key typeV
- the value typejava.util.Iterator<K>
, MapIterator<K,V>
, OrderedIterator<K>
, OrderedMapIterator<K,V>
, ResettableIterator<K>
protected static class AbstractSortedMapDecorator.SortedMapIterator<K,V> extends EntrySetToMapIteratorAdapter<K,V> implements OrderedMapIterator<K,V>
Modifier | Constructor | Description |
---|---|---|
protected |
SortedMapIterator(java.util.Set<java.util.Map.Entry<K,V>> entrySet) |
Create a new AbstractSortedMapDecorator.SortedMapIterator.
|
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 . |
void |
reset() |
Resets the iterator back to the position at which the iterator
was created.
|
current, getKey, getValue, hasNext, next, remove, setValue
public void reset()
reset
in interface ResettableIterator<K>
reset
in class EntrySetToMapIteratorAdapter<K,V>
public boolean hasPrevious()
hasPrevious
in interface OrderedIterator<K>
hasPrevious
in interface OrderedMapIterator<K,V>
true
if the iterator has a previous elementpublic K previous()
Map
.previous
in interface OrderedIterator<K>
previous
in interface OrderedMapIterator<K,V>
Copyright © 2001-2019 - Apache Software Foundation