Package io.usethesource.capsule.core
Class PersistentTrieMap.TrieMapNodeIterator<K,V>
- java.lang.Object
-
- io.usethesource.capsule.core.PersistentTrieMap.TrieMapNodeIterator<K,V>
-
- All Implemented Interfaces:
java.util.Iterator<PersistentTrieMap.AbstractMapNode<K,V>>
- Enclosing class:
- PersistentTrieMap<K,V>
private static class PersistentTrieMap.TrieMapNodeIterator<K,V> extends java.lang.Object implements java.util.Iterator<PersistentTrieMap.AbstractMapNode<K,V>>
Iterator that first iterates over inlined-values and then continues depth first recursively.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.Deque<java.util.Iterator<? extends PersistentTrieMap.AbstractMapNode<K,V>>>
nodeIteratorStack
-
Constructor Summary
Constructors Constructor Description TrieMapNodeIterator(PersistentTrieMap.AbstractMapNode<K,V> rootNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
PersistentTrieMap.AbstractMapNode<K,V>
next()
void
remove()
-
-
-
Field Detail
-
nodeIteratorStack
final java.util.Deque<java.util.Iterator<? extends PersistentTrieMap.AbstractMapNode<K,V>>> nodeIteratorStack
-
-
Constructor Detail
-
TrieMapNodeIterator
TrieMapNodeIterator(PersistentTrieMap.AbstractMapNode<K,V> rootNode)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<K>
-
next
public PersistentTrieMap.AbstractMapNode<K,V> next()
- Specified by:
next
in interfacejava.util.Iterator<K>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<K>
-
-