K
- the type of the keys in the mapV
- the type of the values in the mappublic 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.
IterableMapmap = new HashedMap (); MapIterator it = map.mapIterator(); while (it.hasNext()) { String key = it.next(); Integer value = it.getValue(); it.setValue(value + 1); }
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
mapIterator
containsKey, containsValue, entrySet, get, isEmpty, keySet, remove, size, values
Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.