K
- the key typeV
- the value typeprotected static class AbstractSortedMapDecorator.SortedMapIterator<K,V> extends EntrySetToMapIteratorAdapter<K,V> implements OrderedMapIterator<K,V>
Modifier | Constructor and Description |
---|---|
protected |
AbstractSortedMapDecorator.SortedMapIterator(Set<Map.Entry<K,V>> entrySet)
Create a new AbstractSortedMapDecorator.SortedMapIterator.
|
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 . |
void |
reset()
Resets the iterator back to the position at which the iterator
was created.
|
current, getKey, getValue, hasNext, next, remove, setValue
protected AbstractSortedMapDecorator.SortedMapIterator(Set<Map.Entry<K,V>> entrySet)
entrySet
- the entrySet to iteratepublic 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–2013 The Apache Software Foundation. All rights reserved.