public class SingleBindingSetIteration extends AbstractCloseableIteration<BindingSet,QueryEvaluationException>
Modifier and Type | Field and Description |
---|---|
protected boolean |
hasNext |
protected BindingSet |
res |
Constructor and Description |
---|
SingleBindingSetIteration(BindingSet res) |
Modifier and Type | Method and Description |
---|---|
protected void |
handleClose()
Called by
AbstractCloseableIteration.close() when it is called for the first time. |
boolean |
hasNext()
Returns true if the iteration has more elements.
|
BindingSet |
next()
Returns the next element in the iteration.
|
void |
remove()
Removes from the underlying collection the last element returned by the iteration (optional operation).
|
close, isClosed
protected final BindingSet res
protected boolean hasNext
public SingleBindingSetIteration(BindingSet res)
public boolean hasNext()
Iteration
Iteration.next()
would return an element rather than throwing a NoSuchElementException.)public BindingSet next()
Iteration
public void remove()
Iteration
protected void handleClose() throws QueryEvaluationException
AbstractCloseableIteration
AbstractCloseableIteration.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 AbstractCloseableIteration<BindingSet,QueryEvaluationException>
QueryEvaluationException
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.