Package org.apache.jena.rdf.model.impl
Class SeqNodeIteratorImpl
- java.lang.Object
-
- org.apache.jena.util.iterator.NiceIterator<RDFNode>
-
- org.apache.jena.rdf.model.impl.SeqNodeIteratorImpl
-
- All Implemented Interfaces:
java.util.Iterator<RDFNode>
,Closeable
,NodeIterator
,ClosableIterator<RDFNode>
,ExtendedIterator<RDFNode>
public class SeqNodeIteratorImpl extends NiceIterator<RDFNode> implements NodeIterator
An internal class not normally of interest to developers. A sequence node iterator.
-
-
Constructor Summary
Constructors Constructor Description SeqNodeIteratorImpl(java.util.Iterator<Statement> iterator, Seq seq)
Creates new SeqNodeIteratorImpl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
default hasNext: no elements, return false.RDFNode
next()
default next: throw an exception.RDFNode
nextNode()
Return the next RDFNode of the iteration.void
remove()
default remove: we have no elements, so we can't remove any.-
Methods inherited from class org.apache.jena.util.iterator.NiceIterator
andThen, andThen, asList, asSet, close, close, 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.ExtendedIterator
andThen, filterDrop, filterKeep, forEach, mapWith, nextOptional, removeNext, toList, toSet
-
Methods inherited from interface org.apache.jena.rdf.model.NodeIterator
close
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Description copied from class:NiceIterator
default hasNext: no elements, return false.- Specified by:
hasNext
in interfacejava.util.Iterator<RDFNode>
- Specified by:
hasNext
in interfaceNodeIterator
- Overrides:
hasNext
in classNiceIterator<RDFNode>
- Returns:
- true if and only if there are more values available from the iteration.
-
next
public RDFNode next()
Description copied from class:NiceIterator
default next: throw an exception.- Specified by:
next
in interfacejava.util.Iterator<RDFNode>
- Specified by:
next
in interfaceNodeIterator
- Overrides:
next
in classNiceIterator<RDFNode>
- Returns:
- The next RDFNode from the iteration.
-
nextNode
public RDFNode nextNode()
Description copied from interface:NodeIterator
Return the next RDFNode of the iteration.- Specified by:
nextNode
in interfaceNodeIterator
- Returns:
- The next RDFNode from the iteration.
-
remove
public void remove()
Description copied from class:NiceIterator
default remove: we have no elements, so we can't remove any.- Specified by:
remove
in interfacejava.util.Iterator<RDFNode>
- Specified by:
remove
in interfaceNodeIterator
- Overrides:
remove
in classNiceIterator<RDFNode>
-
-