K
- the type of the keys in this mapV
- the type of the values in this 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.
IterableMap<String,Integer> map = new HashedMap<String,Integer>(); MapIterator<String,Integer> 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. All Rights Reserved