abstract class AbstractPatriciaTrie.TrieIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>
Modifier and Type | Field and Description |
---|---|
protected AbstractPatriciaTrie.TrieEntry<K,V> |
current |
protected int |
expectedModCount
For fast-fail.
|
protected AbstractPatriciaTrie.TrieEntry<K,V> |
next |
Modifier | Constructor and Description |
---|---|
protected |
TrieIterator()
Starts iteration from the root.
|
protected |
TrieIterator(AbstractPatriciaTrie.TrieEntry<K,V> firstEntry)
Starts iteration at the given entry.
|
Modifier and Type | Method and Description |
---|---|
protected AbstractPatriciaTrie.TrieEntry<K,V> |
findNext(AbstractPatriciaTrie.TrieEntry<K,V> prior) |
boolean |
hasNext() |
protected AbstractPatriciaTrie.TrieEntry<K,V> |
nextEntry()
Returns the next
AbstractPatriciaTrie.TrieEntry . |
void |
remove() |
protected int expectedModCount
protected AbstractPatriciaTrie.TrieEntry<K,V> next
protected AbstractPatriciaTrie.TrieEntry<K,V> current
protected TrieIterator()
protected TrieIterator(AbstractPatriciaTrie.TrieEntry<K,V> firstEntry)
protected AbstractPatriciaTrie.TrieEntry<K,V> nextEntry()
AbstractPatriciaTrie.TrieEntry
.protected AbstractPatriciaTrie.TrieEntry<K,V> findNext(AbstractPatriciaTrie.TrieEntry<K,V> prior)
public boolean hasNext()
hasNext
in interface java.util.Iterator<E>
public void remove()
remove
in interface java.util.Iterator<E>