static class TreeBidiMap.ViewMapIterator extends TreeBidiMap.ViewIterator implements OrderedMapIterator
Modifier and Type | Field and Description |
---|---|
private int |
oppositeType |
dataType, lastReturnedNode, main, nextNode, orderType, previousNode
Constructor and Description |
---|
ViewMapIterator(TreeBidiMap main,
int orderType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getKey()
Gets the current key, which is the key returned by the last call
to
next() . |
java.lang.Object |
getValue()
Gets the current value, which is the value associated with the last key
returned by
next() . |
java.lang.Object |
setValue(java.lang.Object obj)
Sets the value associated with the current key (optional operation).
|
doGetData, hasNext, hasPrevious, next, previous, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasPrevious, previous
hasNext, next, remove
ViewMapIterator(TreeBidiMap main, int orderType)
main
- the main maporderType
- the KEY or VALUE int for the orderpublic java.lang.Object getKey()
MapIterator
next()
.getKey
in interface MapIterator
public java.lang.Object getValue()
MapIterator
next()
.getValue
in interface MapIterator
public java.lang.Object setValue(java.lang.Object obj)
MapIterator
setValue
in interface MapIterator
obj
- the new value