static class AbstractReferenceMap.ReferenceMapIterator<K,V> extends AbstractReferenceMap.ReferenceBaseIterator<K,V> implements MapIterator<K,V>
currentKey, currentValue, entry, expectedModCount, index, nextKey, nextValue, parent, previous
Modifier | Constructor and Description |
---|---|
protected |
ReferenceMapIterator(AbstractReferenceMap<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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasNext, remove
protected ReferenceMapIterator(AbstractReferenceMap<K,V> parent)
public K next()
MapIterator
Map
.next
in interface java.util.Iterator<K>
next
in interface MapIterator<K,V>
public K getKey()
MapIterator
next()
.getKey
in interface MapIterator<K,V>
public V getValue()
MapIterator
next()
.getValue
in interface MapIterator<K,V>
public V setValue(V value)
MapIterator
setValue
in interface MapIterator<K,V>
value
- the new value