net.infonode.util.collection.map.base
public interface ConstMapIterator
Here's an example on how to iterate over a map:
for (ConstIterator iterator = map.constIterator(); iterator.atEntry(); iterator.next()) {
Object key = iterator.getKey();
Object value = iterator.getValue();
...
}
Version: $Revision: 1.3 $
Method Summary | |
---|---|
boolean | atEntry()
Returns true if the iterator points to an entry in the map.
|
Object | getKey()
Returns the key at the current map entry.
|
Object | getValue()
Returns the value at the current map entry.
|
void | next()
Advance the iterator to the next entry. |
Returns: true if the iterator points to an entry in the map
Returns: the key at the current map entry
Returns: the value at the current map entry