public class SilentIteration<T,E extends Exception> extends IterationWrapper<T,E>
IterationWrapper that silently ignores any errors that occur during processing.wrappedIter| Constructor and Description |
|---|
SilentIteration(CloseableIteration<T,E> iter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleClose()
Closes 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.
|
T |
next()
Returns the next element from the wrapped Iteration.
|
removeclose, isClosedpublic SilentIteration(CloseableIteration<T,E> iter)
public boolean hasNext()
throws E extends Exception
IterationWrapperpublic T next() throws E extends Exception
IterationWrapperprotected void handleClose()
throws E extends Exception
IterationWrapperCloseableIteration.handleClose in class IterationWrapper<T,E extends Exception>E extends ExceptionCopyright © 2015-2022 Eclipse Foundation. All Rights Reserved.