An iterator for a map.
The iterator points to a map entry when it's created so
ConstMapIterator.next shouldn't be called at the start of the
iteration.
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();
...
}
author: $Author: jesper $ version: $Revision: 1.3 $ |