Package org.apache.jena.rdf.model.impl
Class StmtIteratorImpl
- java.lang.Object
-
- org.apache.jena.util.iterator.NiceIterator<T>
-
- org.apache.jena.util.iterator.WrappedIterator<Statement>
-
- org.apache.jena.rdf.model.impl.StmtIteratorImpl
-
- All Implemented Interfaces:
java.util.Iterator<Statement>
,IteratorCloseable<Statement>
,Closeable
,StmtIterator
,ClosableIterator<Statement>
,ExtendedIterator<Statement>
public class StmtIteratorImpl extends WrappedIterator<Statement> implements StmtIterator
An implementation of StmtIterator.
-
-
Constructor Summary
Constructors Constructor Description StmtIteratorImpl(java.util.Iterator<Statement> iterator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Statement
next()
return *and remember* the next element.Statement
nextStatement()
Return the next Statement of the iteration.void
remove()
if .remove() is allowed, delegate to the base iterator's .remove; otherwise, throw an UnsupportedOperationException.-
Methods inherited from class org.apache.jena.util.iterator.WrappedIterator
close, close, create, createIteratorIterator, createNoRemove, forTestingOnly_getBase, hasNext, ofStream
-
Methods inherited from class org.apache.jena.util.iterator.NiceIterator
andThen, andThen, asList, asSet, emptyIterator, filterDrop, filterKeep, mapWith, removeNext, toList, toSet
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jena.util.iterator.ClosableIterator
close
-
Methods inherited from interface org.apache.jena.util.iterator.ExtendedIterator
andThen, filterDrop, filterKeep, forEach, mapWith, nextOptional, removeNext, toList, toSet
-
Methods inherited from interface org.apache.jena.rdf.model.StmtIterator
toModel
-
-
-
-
Constructor Detail
-
StmtIteratorImpl
public StmtIteratorImpl(java.util.Iterator<Statement> iterator)
-
-
Method Detail
-
next
public Statement next()
return *and remember* the next element. It must be remembered so that remove works whichever next-method is called.- Specified by:
next
in interfacejava.util.Iterator<Statement>
- Overrides:
next
in classWrappedIterator<Statement>
-
remove
public void remove()
Description copied from class:WrappedIterator
if .remove() is allowed, delegate to the base iterator's .remove; otherwise, throw an UnsupportedOperationException.- Specified by:
remove
in interfacejava.util.Iterator<Statement>
- Overrides:
remove
in classWrappedIterator<Statement>
-
nextStatement
public Statement nextStatement()
Description copied from interface:StmtIterator
Return the next Statement of the iteration.- Specified by:
nextStatement
in interfaceStmtIterator
- Returns:
- The next Resource from the iteration.
-
-