K
- the type of the keys in the mapV
- the type of the values in the mappublic interface IterableMap<K,V> extends java.util.Map<K,V>, Put<K,V>, IterableGet<K,V>
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); }
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
mapIterator
containsKey, containsValue, entrySet, get, isEmpty, keySet, remove, size, values
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"