public abstract class CloseableIterationBase<E,X extends Exception> extends Object implements CloseableIteration<E,X>
CloseableIterations offering common functionality.
This class keeps track of whether the iteration has been closed and handles
multiple calls to close() by ignoring all but the first call.| Constructor and Description |
|---|
CloseableIterationBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Calls
handleClose() upon first call and makes sure this method
gets called only once. |
protected void |
handleClose()
Called by
close() when it is called for the first time. |
boolean |
isClosed()
Checks whether this CloseableIteration has been closed.
|
public final boolean isClosed()
public final void close()
throws X extends Exception
handleClose() upon first call and makes sure this method
gets called only once.Copyright © 2001-2014 Aduna. All Rights Reserved.