|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.tudarmstadt.ukp.jwktl.api.util.WiktionaryIterator<Type>
public abstract class WiktionaryIterator<Type>
Default implementation of the IWiktionaryIterator
interface.
Field Summary | |
---|---|
protected boolean |
closed
|
protected Type |
nextValue
|
Constructor Summary | |
---|---|
WiktionaryIterator()
|
Method Summary | |
---|---|
void |
close()
Stops the iteration. |
protected abstract void |
doClose()
Hotspot that is invoked after closing the iteration, i.e. either all items are traversed or manual termination. |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Type nextValue
protected boolean closed
Constructor Detail |
---|
public WiktionaryIterator()
Method Detail |
---|
public Iterator<Type> iterator()
iterator
in interface Iterable<Type>
public boolean hasNext()
hasNext
in interface Iterator<Type>
public Type next()
next
in interface Iterator<Type>
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 remove()
remove
in interface Iterator<Type>
public void close()
IWiktionaryIterator
Iterator.hasNext()
will always result in false
.
close
in interface IWiktionaryIterator<Type>
public boolean isClosed()
IWiktionaryIterator
IWiktionaryIterator.close()
has been called or after the last element
has been retrieved using the Iterator.next()
method.
isClosed
in interface IWiktionaryIterator<Type>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |