Package org.apache.commons.collections4
Interface IterableGet<K,V>
-
- All Superinterfaces:
Get<K,V>
- All Known Subinterfaces:
BidiMap<K,V>
,BoundedMap<K,V>
,IterableMap<K,V>
,IterableSortedMap<K,V>
,MultiMap<K,V>
,OrderedBidiMap<K,V>
,OrderedMap<K,V>
,SortedBidiMap<K,V>
,Trie<K,V>
- All Known Implementing Classes:
AbstractBidiMapDecorator
,AbstractBitwiseTrie
,AbstractDualBidiMap
,AbstractHashedMap
,AbstractIterableGetMapDecorator
,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
,TransformedSplitMap
,TreeBidiMap
,UnmodifiableBidiMap
,UnmodifiableMap
,UnmodifiableOrderedBidiMap
,UnmodifiableOrderedMap
,UnmodifiableSortedBidiMap
,UnmodifiableSortedMap
,UnmodifiableTrie
public interface IterableGet<K,V> extends Get<K,V>
The "read" subset of theMap
interface.- Since:
- 4.0
- Version:
- $Id: IterableGet.java 1477779 2013-04-30 18:55:24Z tn $
- See Also:
Put
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MapIterator<K,V>
mapIterator()
Obtains aMapIterator
over the map.-
Methods inherited from interface org.apache.commons.collections4.Get
containsKey, containsValue, entrySet, get, isEmpty, keySet, remove, size, values
-
-
-
-
Method Detail
-
mapIterator
MapIterator<K,V> mapIterator()
Obtains aMapIterator
over the map.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); } - Returns:
- a map iterator
-
-