public abstract class DelayedIteration<E,X extends Exception> extends CloseableIterationBase<E,X>
| Constructor and Description |
|---|
DelayedIteration()
Creates a new DelayedIteration.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Iteration<? extends E,? extends X> |
createIteration()
Creates the iteration that should be iterated over.
|
protected void |
handleClose()
Closes this iteration as well as the underlying iteration if it has
already been created and happens to be a
CloseableIteration. |
boolean |
hasNext()
Calls the hasNext method of the underlying iteration.
|
E |
next()
Calls the next method of the underlying iteration.
|
void |
remove()
Calls the remove method of the underlying iteration.
|
close, isClosedprotected abstract Iteration<? extends E,? extends X> createIteration() throws X extends Exception
public boolean hasNext()
throws X extends Exception
public void remove()
throws X extends Exception
protected void handleClose()
throws X extends Exception
CloseableIteration.handleClose in class CloseableIterationBase<E,X extends Exception>XX extends ExceptionCopyright © 2001-2014 Aduna. All Rights Reserved.