protected static class AbstractHashedMap.HashMapIterator<K,V> extends AbstractHashedMap.HashIterator<K,V> implements MapIterator<K,V>
| Modifier | Constructor and Description |
|---|---|
protected |
HashMapIterator(AbstractHashedMap<K,V> parent) |
| Modifier and Type | Method and Description |
|---|---|
K |
getKey()
Gets the current key, which is the key returned by the last call
to
next(). |
V |
getValue()
Gets the current value, which is the value associated with the last key
returned by
next(). |
K |
next()
Gets the next key from the
Map. |
V |
setValue(V value)
Sets the value associated with the current key (optional operation).
|
currentEntry, hasNext, nextEntry, remove, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithasNext, removeforEachRemainingprotected HashMapIterator(AbstractHashedMap<K,V> parent)
public K next()
MapIteratorMap.public K getKey()
MapIteratornext().getKey in interface MapIterator<K,V>public V getValue()
MapIteratornext().getValue in interface MapIterator<K,V>public V setValue(V value)
MapIteratorsetValue in interface MapIterator<K,V>value - the new valueCopyright © 2006–2022 Apache Software Foundation. All rights reserved.