IterableType
- The type the inner iterator.OuterType
- The type the outer iterator.public abstract class HierarchicalWiktionaryIterator<IterableType,OuterType> extends WiktionaryIterator<IterableType>
Modifier and Type | Field and Description |
---|---|
protected IWiktionaryIterator<IterableType> |
innerIterator |
protected Iterator<OuterType> |
outerIterator |
closed, nextValue
Constructor and Description |
---|
HierarchicalWiktionaryIterator(Iterator<OuterType> outerIterator)
Initialize the iterator for the given outer type.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doClose()
Hotspot that is invoked after closing the iteration, i.e.
|
protected IterableType |
fetchNext()
Hotspot for fetching the next element for iteration.
|
protected abstract IWiktionaryIterator<IterableType> |
getInnerIterator(OuterType outer) |
close, hasNext, isClosed, iterator, next, remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
forEachRemaining
protected IWiktionaryIterator<IterableType> innerIterator
protected IterableType fetchNext()
WiktionaryIterator
null
is to be returned, which causes the
iterator to return false
for the next WiktionaryIterator.hasNext()
.fetchNext
in class WiktionaryIterator<IterableType>
protected abstract IWiktionaryIterator<IterableType> getInnerIterator(OuterType outer)
protected void doClose()
WiktionaryIterator
doClose
in class WiktionaryIterator<IterableType>
Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.