Class TreeBidiMap.InverseViewMapIterator
- java.lang.Object
-
- org.apache.commons.collections4.bidimap.TreeBidiMap.ViewIterator
-
- org.apache.commons.collections4.bidimap.TreeBidiMap.InverseViewMapIterator
-
- All Implemented Interfaces:
java.util.Iterator<V>
,MapIterator<V,K>
,OrderedIterator<V>
,OrderedMapIterator<V,K>
- Enclosing class:
- TreeBidiMap<K extends java.lang.Comparable<K>,V extends java.lang.Comparable<V>>
class TreeBidiMap.InverseViewMapIterator extends TreeBidiMap.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
Constructors Constructor Description InverseViewMapIterator(TreeBidiMap.DataElement orderType)
Create a new TreeBidiMap.InverseViewMapIterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
getKey()
Gets the current key, which is the key returned by the last call tonext()
.K
getValue()
Gets the current value, which is the value associated with the last key returned bynext()
.V
next()
Gets the next key from theMap
.V
previous()
Gets the previous key from theMap
.K
setValue(K obj)
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 org.apache.commons.collections4.MapIterator
hasNext, remove
-
Methods inherited from interface org.apache.commons.collections4.OrderedMapIterator
hasPrevious
-
-
-
-
Constructor Detail
-
InverseViewMapIterator
public InverseViewMapIterator(TreeBidiMap.DataElement orderType)
Create a new TreeBidiMap.InverseViewMapIterator.
-
-
Method Detail
-
getKey
public V getKey()
Description copied from interface:MapIterator
Gets the current key, which is the key returned by the last call tonext()
.
-
getValue
public K getValue()
Description copied from interface:MapIterator
Gets the current value, which is the value associated with the last key returned bynext()
.
-
setValue
public K setValue(K obj)
Description copied from interface:MapIterator
Sets the value associated with the current key (optional operation).
-
next
public V next()
Description copied from interface:MapIterator
Gets the next key from theMap
.
-
previous
public V previous()
Description copied from interface:OrderedMapIterator
Gets the previous key from theMap
.- Specified by:
previous
in interfaceOrderedIterator<V extends java.lang.Comparable<V>>
- Specified by:
previous
in interfaceOrderedMapIterator<V extends java.lang.Comparable<V>,K extends java.lang.Comparable<K>>
- Returns:
- the previous key in the iteration
-
-