Class TreeBidiMap.InverseViewMapIterator
java.lang.Object
TreeBidiMap<K,V>.org.apache.commons.collections4.bidimap.TreeBidiMap.ViewIterator
org.apache.commons.collections4.bidimap.TreeBidiMap.InverseViewMapIterator
- All Implemented Interfaces:
Iterator<V>
,MapIterator<V,
,K> OrderedIterator<V>
,OrderedMapIterator<V,
K>
- Enclosing class:
TreeBidiMap<K extends Comparable<K>,
V extends Comparable<V>>
class TreeBidiMap.InverseViewMapIterator
extends TreeBidiMap<K,V>.ViewIterator
implements OrderedMapIterator<V,K>
An iterator over the map.
-
Field Summary
Fields inherited from class org.apache.commons.collections4.bidimap.TreeBidiMap.ViewIterator
lastReturnedNode
-
Constructor Summary
ConstructorsConstructorDescriptionInverseViewMapIterator
(TreeBidiMap.DataElement orderType) Create a new TreeBidiMap.InverseViewMapIterator. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()
Gets the current key, which is the key returned by the last call tonext()
.getValue()
Gets the current value, which is the value associated with the last key returned bynext()
.next()
Gets the next key from theMap
.previous()
Gets the previous key from theMap
.Sets the value associated with the current key (optional operation).Methods inherited from class org.apache.commons.collections4.bidimap.TreeBidiMap.ViewIterator
hasNext, hasPrevious, navigateNext, navigatePrevious, remove
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
Methods inherited from interface org.apache.commons.collections4.MapIterator
hasNext, remove
Methods inherited from interface org.apache.commons.collections4.OrderedMapIterator
hasPrevious
-
Constructor Details
-
InverseViewMapIterator
Create a new TreeBidiMap.InverseViewMapIterator.
-
-
Method Details
-
getKey
Description copied from interface:MapIterator
Gets the current key, which is the key returned by the last call tonext()
.- Specified by:
getKey
in interfaceMapIterator<V extends Comparable<V>,
K extends Comparable<K>> - Returns:
- the current key
-
getValue
Description copied from interface:MapIterator
Gets the current value, which is the value associated with the last key returned bynext()
.- Specified by:
getValue
in interfaceMapIterator<V extends Comparable<V>,
K extends Comparable<K>> - Returns:
- the current value
-
setValue
Description copied from interface:MapIterator
Sets the value associated with the current key (optional operation).- Specified by:
setValue
in interfaceMapIterator<V extends Comparable<V>,
K extends Comparable<K>> - Parameters:
obj
- the new value- Returns:
- the previous value
-
next
Description copied from interface:MapIterator
Gets the next key from theMap
.- Specified by:
next
in interfaceIterator<V extends Comparable<V>>
- Specified by:
next
in interfaceMapIterator<V extends Comparable<V>,
K extends Comparable<K>> - Returns:
- the next key in the iteration
-
previous
Description copied from interface:OrderedMapIterator
Gets the previous key from theMap
.- Specified by:
previous
in interfaceOrderedIterator<V extends Comparable<V>>
- Specified by:
previous
in interfaceOrderedMapIterator<V extends Comparable<V>,
K extends Comparable<K>> - Returns:
- the previous key in the iteration
-