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 Comparable<K>, V extends Comparable<V>>
An iterator over the map.
- Since:
- 3.0 (previously DoubleOrderedMap v2.0)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intThe modification count.(package private) TreeBidiMap.Node<K, V> The last node returned by the iterator.private TreeBidiMap.Node<K, V> The next node to be returned by the iterator.private final TreeBidiMap.DataElementWhether to return KEY or VALUE order.private TreeBidiMap.Node<K, V> The previous node in the sequence returned by the iterator. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanhasNext()booleanprotected TreeBidiMap.Node<K, V> protected TreeBidiMap.Node<K, V> final voidremove()
-
Field Details
-
orderType
Whether to return KEY or VALUE order. -
lastReturnedNode
TreeBidiMap.Node<K extends Comparable<K>, V extends Comparable<V>> lastReturnedNodeThe last node returned by the iterator. -
nextNode
The next node to be returned by the iterator. -
previousNode
The previous node in the sequence returned by the iterator. -
expectedModifications
private int expectedModificationsThe modification count.
-
-
Constructor Details
-
ViewIterator
ViewIterator(TreeBidiMap.DataElement orderType) Constructor.- Parameters:
orderType- the KEY or VALUE int for the order
-
-
Method Details
-
hasNext
public final boolean hasNext() -
hasPrevious
public boolean hasPrevious() -
remove
public final void remove()
-