- java.lang.Object
-
- org.pcollections.KVTree.EntryIterator<K,V>
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
isLeftToRight
whether we're iterating from left to right (vs.private KVTree<K,V>
nextSubtree
node that we need to enterprivate java.util.ArrayList<KVTree<K,V>>
stack
nodes that we've recursed into, but not yet returned
-
Constructor Summary
Constructors Constructor Description EntryIterator(KVTree<K,V> tree, boolean isLeftToRight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private KVTree<K,V>
firstChild(KVTree<K,V> node)
boolean
hasNext()
java.util.Map.Entry<K,V>
next()
private KVTree<K,V>
secondChild(KVTree<K,V> node)
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<K>
-
-