Package io.usethesource.capsule.core
Class PersistentTrieMap.AbstractMapIterator<K,V>
- java.lang.Object
-
- io.usethesource.capsule.core.PersistentTrieMap.AbstractMapIterator<K,V>
-
- Direct Known Subclasses:
PersistentTrieMap.MapEntryIterator
,PersistentTrieMap.MapKeyIterator
,PersistentTrieMap.MapValueIterator
- Enclosing class:
- PersistentTrieMap<K,V>
private abstract static class PersistentTrieMap.AbstractMapIterator<K,V> 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 PersistentTrieMap.AbstractMapNode<K,V>
currentValueNode
private static int
MAX_DEPTH
private int[]
nodeCursorsAndLengths
(package private) PersistentTrieMap.AbstractMapNode<K,V>[]
nodes
-
Constructor Summary
Constructors Constructor Description AbstractMapIterator(PersistentTrieMap.AbstractMapNode<K,V> 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 PersistentTrieMap.AbstractMapNode<K,V> currentValueNode
-
currentStackLevel
private int currentStackLevel
-
nodeCursorsAndLengths
private final int[] nodeCursorsAndLengths
-
nodes
PersistentTrieMap.AbstractMapNode<K,V>[] nodes
-
-
Constructor Detail
-
AbstractMapIterator
AbstractMapIterator(PersistentTrieMap.AbstractMapNode<K,V> rootNode)
-
-