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.
|
remove
close, isClosed
public SilentIteration(CloseableIteration<T,E> iter)
public boolean hasNext() throws E extends Exception
IterationWrapper
public T next() throws E extends Exception
IterationWrapper
protected void handleClose() throws E extends Exception
IterationWrapper
CloseableIteration
.handleClose
in class IterationWrapper<T,E extends Exception>
E extends Exception
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.