K
- the type of the keys in the mapV
- the type of the values in the mapGet<K,V>
, IterableGet<K,V>
, java.util.Map<K,V>
, Put<K,V>
BidiMap<K,V>
, BoundedMap<K,V>
, IterableSortedMap<K,V>
, MultiMap<K,V>
, OrderedBidiMap<K,V>
, OrderedMap<K,V>
, SortedBidiMap<K,V>
, Trie<K,V>
AbstractBidiMapDecorator
, AbstractBitwiseTrie
, AbstractDualBidiMap
, AbstractHashedMap
, AbstractIterableMap
, AbstractLinkedMap
, AbstractMapDecorator
, AbstractOrderedBidiMapDecorator
, AbstractOrderedMapDecorator
, AbstractReferenceMap
, AbstractSortedBidiMapDecorator
, AbstractSortedMapDecorator
, CaseInsensitiveMap
, CompositeMap
, DefaultedMap
, DualHashBidiMap
, DualLinkedHashBidiMap
, DualTreeBidiMap
, DualTreeBidiMap.ViewMap
, FixedSizeMap
, FixedSizeSortedMap
, Flat3Map
, HashedMap
, LazyMap
, LazySortedMap
, LinkedMap
, ListOrderedMap
, LRUMap
, MultiKeyMap
, MultiValueMap
, PassiveExpiringMap
, PatriciaTrie
, PredicatedMap
, PredicatedSortedMap
, ReferenceIdentityMap
, ReferenceMap
, SingletonMap
, StaticBucketMap
, TransformedMap
, TransformedSortedMap
, TreeBidiMap
, UnmodifiableBidiMap
, UnmodifiableMap
, UnmodifiableOrderedBidiMap
, UnmodifiableOrderedMap
, UnmodifiableSortedBidiMap
, UnmodifiableSortedMap
, UnmodifiableTrie
public 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); }
containsKey, containsValue, entrySet, get, isEmpty, keySet, remove, size, values
mapIterator
clear, 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, values
Copyright © 2001-2019 - Apache Software Foundation