java.util.Iterator
, MapIterator
protected static class AbstractHashedMap.HashMapIterator extends AbstractHashedMap.HashIterator implements MapIterator
expectedModCount, hashIndex, last, next, parent
Modifier | Constructor | Description |
---|---|---|
protected |
HashMapIterator(AbstractHashedMap parent) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
getKey() |
Gets the current key, which is the key returned by the last call
to
next() . |
java.lang.Object |
getValue() |
Gets the current value, which is the value associated with the last key
returned by
next() . |
java.lang.Object |
next() |
Gets the next key from the
Map . |
java.lang.Object |
setValue(java.lang.Object value) |
Sets the value associated with the current key (optional operation).
|
currentEntry, hasNext, nextEntry, remove, toString
hasNext, remove
protected HashMapIterator(AbstractHashedMap parent)
public java.lang.Object next()
MapIterator
Map
.next
in interface java.util.Iterator
next
in interface MapIterator
public java.lang.Object getKey()
MapIterator
next()
.getKey
in interface MapIterator
public java.lang.Object getValue()
MapIterator
next()
.getValue
in interface MapIterator
public java.lang.Object setValue(java.lang.Object value)
MapIterator
setValue
in interface MapIterator
value
- the new valueCopyright © 2001-2017 Apache Software Foundation. All Rights Reserved.