public abstract class AbstractIterator<E>
extends java.lang.Object
implements java.util.Iterator<E>
| Constructor and Description |
|---|
AbstractIterator() |
| Modifier and Type | Method and Description |
|---|---|
protected E |
done()
Call when done.
|
protected abstract E |
fetch()
Fetch next element.
|
boolean |
hasNext() |
E |
next() |
void |
remove()
Default implementation throws
UnsupportedOperationException. |
public boolean hasNext()
hasNext in interface java.util.Iterator<E>public void remove()
UnsupportedOperationException.remove in interface java.util.Iterator<E>protected abstract E fetch()
done() when all
elements have been fetched.done().protected final E done()
Copyright © 2015 Carrot Search s.c.. All Rights Reserved.