Class TreeBidiMap.ViewIterator
- java.lang.Object
-
- org.apache.commons.collections4.bidimap.TreeBidiMap.ViewIterator
-
- Direct Known Subclasses:
TreeBidiMap.InverseViewMapEntryIterator
,TreeBidiMap.InverseViewMapIterator
,TreeBidiMap.ViewMapEntryIterator
,TreeBidiMap.ViewMapIterator
- Enclosing class:
- TreeBidiMap<K extends java.lang.Comparable<K>,V extends java.lang.Comparable<V>>
abstract class TreeBidiMap.ViewIterator extends java.lang.Object
An iterator over the map.
-
-
Field Summary
Fields Modifier and Type Field Description private int
expectedModifications
The modification count.(package private) TreeBidiMap.Node<K,V>
lastReturnedNode
The last node returned by the iterator.private TreeBidiMap.Node<K,V>
nextNode
The next node to be returned by the iterator.private TreeBidiMap.DataElement
orderType
Whether to return KEY or VALUE order.private TreeBidiMap.Node<K,V>
previousNode
The previous node in the sequence returned by the iterator.
-
Constructor Summary
Constructors Constructor Description ViewIterator(TreeBidiMap.DataElement orderType)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
boolean
hasPrevious()
protected TreeBidiMap.Node<K,V>
navigateNext()
protected TreeBidiMap.Node<K,V>
navigatePrevious()
void
remove()
-
-
-
Field Detail
-
orderType
private final TreeBidiMap.DataElement orderType
Whether to return KEY or VALUE order.
-
lastReturnedNode
TreeBidiMap.Node<K extends java.lang.Comparable<K>,V extends java.lang.Comparable<V>> lastReturnedNode
The last node returned by the iterator.
-
nextNode
private TreeBidiMap.Node<K extends java.lang.Comparable<K>,V extends java.lang.Comparable<V>> nextNode
The next node to be returned by the iterator.
-
previousNode
private TreeBidiMap.Node<K extends java.lang.Comparable<K>,V extends java.lang.Comparable<V>> previousNode
The previous node in the sequence returned by the iterator.
-
expectedModifications
private int expectedModifications
The modification count.
-
-
Constructor Detail
-
ViewIterator
ViewIterator(TreeBidiMap.DataElement orderType)
Constructor.- Parameters:
orderType
- the KEY or VALUE int for the order
-
-
Method Detail
-
hasNext
public final boolean hasNext()
-
navigateNext
protected TreeBidiMap.Node<K,V> navigateNext()
-
hasPrevious
public boolean hasPrevious()
-
navigatePrevious
protected TreeBidiMap.Node<K,V> navigatePrevious()
-
remove
public final void remove()
-
-