java.util.Map
BidiMap
, OrderedBidiMap
, OrderedMap
, SortedBidiMap
AbstractBidiMapDecorator
, AbstractDualBidiMap
, AbstractHashedMap
, AbstractLinkedMap
, AbstractOrderedBidiMapDecorator
, AbstractOrderedMapDecorator
, AbstractReferenceMap
, AbstractSortedBidiMapDecorator
, CaseInsensitiveMap
, DualHashBidiMap
, DualTreeBidiMap
, Flat3Map
, HashedMap
, IdentityMap
, LinkedMap
, ListOrderedMap
, LRUMap
, MultiKeyMap
, ReferenceIdentityMap
, ReferenceMap
, SingletonMap
, TreeBidiMap
, UnmodifiableBidiMap
, UnmodifiableMap
, UnmodifiableOrderedBidiMap
, UnmodifiableOrderedMap
, UnmodifiableSortedBidiMap
public interface IterableMap
extends java.util.Map
A map iterator is an efficient way of iterating over maps. There is no need to access the entry set or cast to Map Entry objects.
IterableMap map = new HashedMap(); MapIterator it = map.mapIterator(); while (it.hasNext()) { Object key = it.next(); Object value = it.getValue(); it.setValue("newValue"); }
Modifier and Type | Method | Description |
---|---|---|
MapIterator |
mapIterator() |
Obtains a
MapIterator over the map. |
MapIterator 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 cast to Map Entry objects.
IterableMap map = new HashedMap(); MapIterator it = map.mapIterator(); while (it.hasNext()) { Object key = it.next(); Object value = it.getValue(); it.setValue("newValue"); }
Copyright © 2001-2017 Apache Software Foundation. All Rights Reserved.