Class AbstractIterableMap<K,V>
- java.lang.Object
 - 
- org.apache.openjpa.lib.util.collections.AbstractIterableMap<K,V>
 
 
- 
- Type Parameters:
 K- the type of the keys in this mapV- the type of the values in this map
- All Implemented Interfaces:
 Map<K,V>,IterableMap<K,V>
- Direct Known Subclasses:
 AbstractMapDecorator
public abstract class AbstractIterableMap<K,V> extends Object implements IterableMap<K,V>
Provide a basicIterableMapimplementation.- Since:
 - 4.0
 
 
- 
- 
Constructor Summary
Constructors Constructor Description AbstractIterableMap() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MapIterator<K,V>mapIterator()Obtains aMapIteratorover the map.- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface org.apache.openjpa.lib.util.collections.IterableMap
clear, put, putAll 
- 
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values 
 - 
 
 - 
 
- 
- 
Method Detail
- 
mapIterator
public MapIterator<K,V> mapIterator()
Obtains aMapIteratorover 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<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); }- Specified by:
 mapIteratorin interfaceIterableMap<K,V>- Returns:
 - a map iterator
 
 
 - 
 
 -