Package io.usethesource.capsule.core
Class PersistentTrieSet.AbstractSetIterator<K>
- java.lang.Object
-
- io.usethesource.capsule.core.PersistentTrieSet.AbstractSetIterator<K>
-
- Direct Known Subclasses:
PersistentTrieSet.SetKeyIterator
- Enclosing class:
- PersistentTrieSet<K>
private abstract static class PersistentTrieSet.AbstractSetIterator<K> extends java.lang.Object
Iterator skeleton that uses a fixed stack in depth.
-
-
Field Summary
Fields Modifier and Type Field Description private int
currentStackLevel
protected int
currentValueCursor
protected int
currentValueLength
protected PersistentTrieSet.AbstractSetNode<K>
currentValueNode
private static int
MAX_DEPTH
private int[]
nodeCursorsAndLengths
(package private) PersistentTrieSet.AbstractSetNode<K>[]
nodes
-
Constructor Summary
Constructors Constructor Description AbstractSetIterator(PersistentTrieSet.AbstractSetNode<K> rootNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
void
remove()
private boolean
searchNextValueNode()
-
-
-
Field Detail
-
MAX_DEPTH
private static final int MAX_DEPTH
- See Also:
- Constant Field Values
-
currentValueCursor
protected int currentValueCursor
-
currentValueLength
protected int currentValueLength
-
currentValueNode
protected PersistentTrieSet.AbstractSetNode<K> currentValueNode
-
currentStackLevel
private int currentStackLevel
-
nodeCursorsAndLengths
private final int[] nodeCursorsAndLengths
-
nodes
PersistentTrieSet.AbstractSetNode<K>[] nodes
-
-
Constructor Detail
-
AbstractSetIterator
AbstractSetIterator(PersistentTrieSet.AbstractSetNode<K> rootNode)
-
-