Class AbstractPatriciaTrie.TrieIterator<E>
java.lang.Object
org.apache.commons.collections4.trie.AbstractPatriciaTrie.TrieIterator<E>
- All Implemented Interfaces:
Iterator<E>
- Direct Known Subclasses:
AbstractPatriciaTrie.EntrySet.EntryIterator, AbstractPatriciaTrie.KeySet.KeyIterator, AbstractPatriciaTrie.PrefixRangeEntrySet.EntryIterator, AbstractPatriciaTrie.RangeEntrySet.EntryIterator, AbstractPatriciaTrie.TrieMapIterator, AbstractPatriciaTrie.Values.ValueIterator
- Enclosing class:
AbstractPatriciaTrie<K,V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AbstractPatriciaTrie.TrieEntry<K, V> protected intFor fast-fail.protected AbstractPatriciaTrie.TrieEntry<K, V> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStarts iteration from the root.protectedTrieIterator(AbstractPatriciaTrie.TrieEntry<K, V> firstEntry) Starts iteration at the given entry. -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractPatriciaTrie.TrieEntry<K, V> findNext(AbstractPatriciaTrie.TrieEntry<K, V> prior) booleanhasNext()protected AbstractPatriciaTrie.TrieEntry<K, V> Returns the nextAbstractPatriciaTrie.TrieEntry.voidremove()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining, next
-
Field Details
-
expectedModCount
protected int expectedModCountFor fast-fail. -
next
-
current
-
-
Constructor Details
-
TrieIterator
protected TrieIterator()Starts iteration from the root. -
TrieIterator
Starts iteration at the given entry.
-
-
Method Details
-
nextEntry
Returns the nextAbstractPatriciaTrie.TrieEntry. -
findNext
- See Also:
-
hasNext
-
remove
-