public abstract class FilterIteration<E,X extends Exception> extends IterationWrapper<E,X>
wrappedIter| Modifier | Constructor and Description |
|---|---|
protected |
FilterIteration(Iteration<? extends E,? extends X> iter) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
accept(E object)
Tests whether or not the specified object should be returned by this Iteration.
|
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.
|
E |
next()
Returns the next element from the wrapped Iteration.
|
removeclose, isClosedpublic boolean hasNext()
throws X extends Exception
IterationWrapperpublic E next() throws X extends Exception
IterationWrapperprotected abstract boolean accept(E object) throws X extends Exception
protected void handleClose()
throws X extends Exception
IterationWrapperCloseableIteration.handleClose in class IterationWrapper<E,X extends Exception>XX extends ExceptionCopyright © 2015-2022 Eclipse Foundation. All Rights Reserved.