Class AbstractSortedMapDecorator.SortedMapIterator<K,V> 
java.lang.Object
org.apache.commons.collections4.map.EntrySetToMapIteratorAdapter<K,V>
 
org.apache.commons.collections4.map.AbstractSortedMapDecorator.SortedMapIterator<K,V> 
- Type Parameters:
- K- the key type
- V- the value type
- All Implemented Interfaces:
- Iterator<K>,- MapIterator<K,,- V> - OrderedIterator<K>,- OrderedMapIterator<K,,- V> - ResettableIterator<K>
- Enclosing class:
- AbstractSortedMapDecorator<K,- V> 
protected static class AbstractSortedMapDecorator.SortedMapIterator<K,V> 
extends EntrySetToMapIteratorAdapter<K,V>
implements OrderedMapIterator<K,V>  
OrderedMapIterator implementation.
- Since:
- 3.0
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedSortedMapIterator(Set<Map.Entry<K, V>> entrySet) Create a new AbstractSortedMapDecorator.SortedMapIterator.
- 
Method SummaryMethods inherited from class org.apache.commons.collections4.map.EntrySetToMapIteratorAdaptercurrent, getKey, getValue, hasNext, next, remove, setValueMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.IteratorforEachRemaining
- 
Constructor Details- 
SortedMapIteratorCreate a new AbstractSortedMapDecorator.SortedMapIterator.- Parameters:
- entrySet- the entrySet to iterate
 
 
- 
- 
Method Details- 
hasPreviousChecks to see if there is a previous entry that can be iterated to.- Specified by:
- hasPreviousin interface- OrderedIterator<K>
- Specified by:
- hasPreviousin interface- OrderedMapIterator<K,- V> 
- Returns:
- trueif the iterator has a previous element
 
- 
previousGets the previous key from theMap.- Specified by:
- previousin interface- OrderedIterator<K>
- Specified by:
- previousin interface- OrderedMapIterator<K,- V> 
- Returns:
- the previous key in the iteration
 
- 
resetResets the iterator back to the position at which the iterator was created.- Specified by:
- resetin interface- ResettableIterator<K>
- Overrides:
- resetin class- EntrySetToMapIteratorAdapter<K,- V> 
 
 
-