All Implemented Interfaces:
IterableMap
All Known Implementing Classes:
LRUMap, AbstractSortedBidiMapDecorator, AbstractLinkedMap, MockLRUMapSubclass, TreeBidiMap, ListOrderedMap, TestOrderedBidiMap, AbstractOrderedBidiMapDecorator, UnmodifiableOrderedMap, SortedBidiMap, SingletonMap, AbstractOrderedMapDecorator, MockLRUMapSubclassFirstBlocksRemove, MockLRUMapSubclassBlocksRemove, OrderedBidiMap, UnmodifiableOrderedBidiMap, Inverse, UnmodifiableSortedBidiMap, LinkedMap, DualTreeBidiMap
Commons - Collections 3.0$ - Revision: 646777 $ $Date: 2008-04-10 13:33:15 +0100 (Thu, 10 Apr 2008) $Stephen - Colebourne| Method from org.apache.commons.collections.OrderedMap Summary: |
|---|
| firstKey, lastKey, nextKey, orderedMapIterator, previousKey |
| Method from org.apache.commons.collections.OrderedMap Detail: |
|---|
|
|
|
OrderedMapIterator over the map.
A ordered map iterator is an efficient way of iterating over maps in both directions.
BidiMap map = new TreeBidiMap();
MapIterator it = map.mapIterator();
while (it.hasNext()) {
Object key = it.next();
Object value = it.getValue();
it.setValue("newValue");
Object previousKey = it.previous();
}
|
|