class TreeBidiMap.ViewMapIterator extends TreeBidiMap.ViewIterator implements OrderedMapIterator<K,V>
lastReturnedNode
Constructor and Description |
---|
ViewMapIterator(TreeBidiMap.DataElement orderType)
Constructor.
|
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 . |
K |
previous()
Gets the previous key from the
Map . |
V |
setValue(V obj)
Sets the value associated with the current key (optional operation).
|
hasNext, hasPrevious, navigateNext, navigatePrevious, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasPrevious
hasNext, remove
ViewMapIterator(TreeBidiMap.DataElement orderType)
public K getKey()
MapIterator
next()
.public V getValue()
MapIterator
next()
.public V setValue(V obj)
MapIterator
public K next()
MapIterator
Map
.public K previous()
OrderedMapIterator
Map
.previous
in interface OrderedIterator<K extends java.lang.Comparable<K>>
previous
in interface OrderedMapIterator<K extends java.lang.Comparable<K>,V extends java.lang.Comparable<V>>