|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IterableGet<K,V>
The "read" subset of the Map
interface.
Put
Method Summary | |
---|---|
MapIterator<K,V> |
mapIterator()
Obtains a MapIterator over the map. |
Methods inherited from interface org.apache.commons.collections4.Get |
---|
containsKey, containsValue, entrySet, get, isEmpty, keySet, remove, size, values |
Method Detail |
---|
MapIterator<K,V> mapIterator()
MapIterator
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.
IterableMapmap = new HashedMap (); MapIterator it = map.mapIterator(); while (it.hasNext()) { String key = it.next(); Integer value = it.getValue(); it.setValue(value + 1); }
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |