java.util.Iterator<K>, MapIterator<K,V>, OrderedIterator<K>, OrderedMapIterator<K,V>, ResettableIterator<K>protected static class AbstractLinkedMap.LinkMapIterator<K,V> extends AbstractLinkedMap.LinkIterator<K,V> implements OrderedMapIterator<K,V>, ResettableIterator<K>
expectedModCount, last, next, parent| Modifier | Constructor | Description |
|---|---|---|
protected |
LinkMapIterator(AbstractLinkedMap<K,V> parent) |
| Modifier and Type | Method | 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. |
K |
previous() |
Gets the previous key from the
Map. |
V |
setValue(V value) |
Sets the value associated with the current key (optional operation).
|
currentEntry, hasNext, hasPrevious, nextEntry, previousEntry, remove, reset, toStringhasNext, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithasPreviousresetprotected LinkMapIterator(AbstractLinkedMap<K,V> parent)
public K next()
MapIteratorMap.next in interface java.util.Iterator<K>next in interface MapIterator<K,V>public K previous()
OrderedMapIteratorMap.previous in interface OrderedIterator<K>previous in interface OrderedMapIterator<K,V>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 © 2001-2019 - Apache Software Foundation