public class StatementIterator extends Object implements ClosableIterator<Statement>
Constructor and Description |
---|
StatementIterator(info.aduna.iteration.CloseableIteration<? extends org.openrdf.model.Statement,? extends org.openrdf.OpenRDFException> cit,
RepositoryModel model) |
Modifier and Type | Method and Description |
---|---|
void |
close()
The uderlying implementation frees resources.
|
protected void |
finalize() |
boolean |
hasNext()
Returns true if the iteration has more elements.
|
Statement |
next()
Returns the next element in the iteration.
|
void |
remove()
Removes from the underlying collection the last element returned by the
iterator (optional operation).
|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public StatementIterator(info.aduna.iteration.CloseableIteration<? extends org.openrdf.model.Statement,? extends org.openrdf.OpenRDFException> cit, RepositoryModel model)
public boolean hasNext()
ClosableIterator
public Statement next()
ClosableIterator
ClosableIterator.hasNext()
method returns false will return each
element in the underlying collection exactly once.public void remove()
ClosableIterator
public void close()
ClosableIterator
close
in interface ClosableIterator<Statement>
Copyright © 2005–2019 IT-Consulting Dr. Max Völkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.