public abstract class DelayedIteration<E,X extends Exception> extends AbstractCloseableIteration<E,X>
Modifier | Constructor and Description |
---|---|
protected |
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, isClosed
protected 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 AbstractCloseableIteration<E,X extends Exception>
X
X extends Exception
Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.