public abstract class WiktionaryIterator<Type> extends Object implements IWiktionaryIterator<Type>
IWiktionaryIterator interface.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
closed |
protected Type |
nextValue |
| Constructor and Description |
|---|
WiktionaryIterator() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Stops the iteration.
|
protected abstract void |
doClose()
Hotspot that is invoked after closing the iteration, i.e.
|
protected abstract Type |
fetchNext()
Hotspot for fetching the next element for iteration.
|
boolean |
hasNext() |
boolean |
isClosed()
Returns true if the iterator has been closed, which is the case
after
IWiktionaryIterator.close() has been called or after the last element
has been retrieved using the Iterator.next() method. |
Iterator<Type> |
iterator() |
Type |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorforEachRemainingprotected Type nextValue
protected boolean closed
protected abstract Type fetchNext()
null is to be returned, which causes the
iterator to return false for the next hasNext().protected abstract void doClose()
public void close()
IWiktionaryIteratorIterator.hasNext() will always result in false.close in interface IWiktionaryIterator<Type>public boolean isClosed()
IWiktionaryIteratorIWiktionaryIterator.close() has been called or after the last element
has been retrieved using the Iterator.next() method.isClosed in interface IWiktionaryIterator<Type>Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.