Package org.apache.jena.rdf.model.impl
Class ContNodeIteratorImpl
- java.lang.Object
-
- org.apache.jena.util.iterator.NiceIterator<RDFNode>
-
- org.apache.jena.rdf.model.impl.ContNodeIteratorImpl
-
- All Implemented Interfaces:
java.util.Iterator<RDFNode>
,IteratorCloseable<RDFNode>
,Closeable
,NodeIterator
,ClosableIterator<RDFNode>
,ExtendedIterator<RDFNode>
public class ContNodeIteratorImpl extends NiceIterator<RDFNode> implements NodeIterator
An internal class not normally of interest to application developers. An iterator over the nodes in a container.
-
-
Constructor Summary
Constructors Constructor Description ContNodeIteratorImpl(java.util.Iterator<Statement> iterator, java.lang.Object ignored, Container cont)
Creates new ContNodeIteratorImpl
-
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
-
next
public RDFNode next() throws java.util.NoSuchElementException
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.
- Throws:
java.util.NoSuchElementException
- if there are no more nodes to be returned.
-
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.
-
nextNode
public RDFNode nextNode() throws java.util.NoSuchElementException
Description copied from interface:NodeIterator
Return the next RDFNode of the iteration.- Specified by:
nextNode
in interfaceNodeIterator
- Returns:
- The next RDFNode from the iteration.
- Throws:
java.util.NoSuchElementException
- if there are no more nodes to be returned.
-
remove
public void remove() throws java.util.NoSuchElementException
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>
- Throws:
java.util.NoSuchElementException
-
-