abstract class TreeBidiMap.ViewIterator
extends java.lang.Object
Modifier and Type | Field and 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 and Description |
---|
ViewIterator(TreeBidiMap.DataElement orderType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
boolean |
hasPrevious() |
protected TreeBidiMap.Node<K,V> |
navigateNext() |
protected TreeBidiMap.Node<K,V> |
navigatePrevious() |
void |
remove() |
private final TreeBidiMap.DataElement orderType
TreeBidiMap.Node<K extends java.lang.Comparable<K>,V extends java.lang.Comparable<V>> lastReturnedNode
private TreeBidiMap.Node<K extends java.lang.Comparable<K>,V extends java.lang.Comparable<V>> nextNode
private TreeBidiMap.Node<K extends java.lang.Comparable<K>,V extends java.lang.Comparable<V>> previousNode
private int expectedModifications
ViewIterator(TreeBidiMap.DataElement orderType)
orderType
- the KEY or VALUE int for the ordermain
- the main mappublic final boolean hasNext()
protected TreeBidiMap.Node<K,V> navigateNext()
public boolean hasPrevious()
protected TreeBidiMap.Node<K,V> navigatePrevious()
public final void remove()