protected static class AbstractHashedMap.HashMapIterator extends AbstractHashedMap.HashIterator implements MapIterator
expectedModCount, hashIndex, last, next, parent| Modifier | Constructor and Description |
|---|---|
protected |
AbstractHashedMap.HashMapIterator(AbstractHashedMap parent) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getKey()
Gets the current key, which is the key returned by the last call
to
next(). |
Object |
getValue()
Gets the current value, which is the value associated with the last key
returned by
next(). |
Object |
next()
Gets the next key from the
Map. |
Object |
setValue(Object 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, removeprotected AbstractHashedMap.HashMapIterator(AbstractHashedMap parent)
public Object next()
MapIteratorMap.next in interface Iteratornext in interface MapIteratorpublic Object getKey()
MapIteratornext().getKey in interface MapIteratorpublic Object getValue()
MapIteratornext().getValue in interface MapIteratorpublic Object setValue(Object value)
MapIteratorsetValue in interface MapIteratorvalue - the new valueCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.