K - the type of the keys in the map
V - the type of the values in the map
public interface IterableMap<K,V> extends 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.
IterableMap
map = 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, valuesmapIteratorcontainsKey, containsValue, entrySet, get, isEmpty, keySet, remove, size, values