| Method Summary | |
|---|---|
| Object |
Gets the first key currently in this map. |
| Object |
Gets the last key currently in this map. |
| Object |
Gets the next key after the one specified. |
| OrderedMapIterator |
Obtains an OrderedMapIterator over the map.
|
| Object |
Gets the previous key before the one specified. |
| Methods inherited from org.apache.commons.collectionsIterableMap |
|---|
| Methods inherited from java.utilMap |
|---|
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();
}