java.util.Map<K,V>, Get<K,V>, IterableGet<K,V>, IterableMap<K,V>, Put<K,V>AbstractMapDecorator, CompositeMap, StaticBucketMappublic abstract class AbstractIterableMap<K,V> extends java.lang.Object implements IterableMap<K,V>
IterableMap implementation.| Constructor | Description |
|---|---|
AbstractIterableMap() |
| Modifier and Type | Method | Description |
|---|---|---|
MapIterator<K,V> |
mapIterator() |
Obtains a
MapIterator over the map. |
containsKey, containsValue, entrySet, get, isEmpty, keySet, remove, size, valuesclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entry, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, of, of, of, of, of, of, of, of, of, of, of, ofEntries, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic MapIterator<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.
IterableMapmap = new HashedMap (); MapIterator it = map.mapIterator(); while (it.hasNext()) { String key = it.next(); Integer value = it.getValue(); it.setValue(value + 1); }
mapIterator in interface IterableGet<K,V>Copyright © 2001-2019 - Apache Software Foundation