public class AlternativeCursor<E> extends LookAheadIteration<E,QueryEvaluationException>
| Constructor and Description |
|---|
AlternativeCursor(CloseableIteration<? extends E,QueryEvaluationException> primary,
CloseableIteration<? extends E,QueryEvaluationException> alternative) |
| Modifier and Type | Method and Description |
|---|---|
E |
getNextElement()
Gets the next element.
|
void |
handleClose()
Called by
AbstractCloseableIteration.close() when it is called for the first time. |
String |
toString() |
hasNext, next, removeclose, isClosedpublic AlternativeCursor(CloseableIteration<? extends E,QueryEvaluationException> primary, CloseableIteration<? extends E,QueryEvaluationException> alternative)
public void handleClose()
throws QueryEvaluationException
AbstractCloseableIterationAbstractCloseableIteration.close() when it is called for the first time. This method is only called once on each iteration.
By default, this method does nothing.handleClose in class LookAheadIteration<E,QueryEvaluationException>QueryEvaluationExceptionpublic E getNextElement() throws QueryEvaluationException
LookAheadIterationgetNextElement in class LookAheadIteration<E,QueryEvaluationException>QueryEvaluationExceptionCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.