public abstract class TimeLimitIteration<E,X extends Exception> extends IterationWrapper<E,X>
wrappedIter| Constructor and Description |
|---|
TimeLimitIteration(Iteration<? extends E,? extends X> iter,
long timeLimit) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleClose()
Closed this Iteration and also closes the wrapped Iteration if it is a
CloseableIteration. |
boolean |
hasNext()
Checks whether the wrapped Iteration contains more elements, closing this
Iteration when this is not the case.
|
E |
next()
Returns the next element from the wrapped Iteration.
|
void |
remove()
Removes the last element that has been returned from the wrapped
Iteration.
|
protected abstract void |
throwInterruptedException() |
close, isClosedpublic boolean hasNext()
throws X extends Exception
IterationWrapperpublic E next() throws X extends Exception
IterationWrapperpublic void remove()
throws X extends Exception
IterationWrapperprotected void handleClose()
throws X extends Exception
IterationWrapperCloseableIteration.handleClose in class IterationWrapper<E,X extends Exception>XX extends ExceptionCopyright © 2001-2013 Aduna. All Rights Reserved.