protected static class AbstractLinkedMap.LinkMapIterator extends AbstractLinkedMap.LinkIterator implements OrderedMapIterator
expectedModCount, last, next, parent
Modifier | Constructor and Description |
---|---|
protected |
AbstractLinkedMap.LinkMapIterator(AbstractLinkedMap 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 |
previous()
Gets the previous key from the
Map . |
Object |
setValue(Object value)
Sets the value associated with the current key (optional operation).
|
currentEntry, hasNext, hasPrevious, nextEntry, previousEntry, remove, reset, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
hasPrevious
hasNext, remove
protected AbstractLinkedMap.LinkMapIterator(AbstractLinkedMap parent)
public Object next()
MapIterator
Map
.next
in interface Iterator
next
in interface MapIterator
public Object previous()
OrderedMapIterator
Map
.previous
in interface OrderedIterator
previous
in interface OrderedMapIterator
public Object getKey()
MapIterator
next()
.getKey
in interface MapIterator
public Object getValue()
MapIterator
next()
.getValue
in interface MapIterator
public Object setValue(Object value)
MapIterator
setValue
in interface MapIterator
value
- the new valueCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.