public interface IterableGet<K,V> extends Get<K ,V>
Map interface.
Put
| Modifier and Type | Method and Description |
|---|---|
MapIterator |
mapIterator()
Obtains a
MapIterator over the map.
|
containsKey, containsValue, entrySet, get, isEmpty, keySet, remove, size, valuesMapIterator<K ,V> mapIterator()
MapIterator over the map.
A map iterator is an efficient way of iterating over maps. There is no need to access the entry set or use Map Entry objects.
IterableMap
map = new HashedMap
(); MapIterator
it = map.mapIterator(); while (it.hasNext()) { String key = it.next(); Integer value = it.getValue(); it.setValue(value + 1); }