java.lang.Object
org.apache.jena.util.iterator.NiceIterator<RDFNode>
org.apache.jena.rdf.model.impl.ContNodeIteratorImpl
- All Implemented Interfaces:
Iterator<RDFNode>,org.apache.jena.atlas.iterator.IteratorCloseable<RDFNode>,org.apache.jena.atlas.lib.Closeable,NodeIterator,ClosableIterator<RDFNode>,ExtendedIterator<RDFNode>
An internal class not normally of interest to application developers.
An iterator over the nodes in a container.
-
Constructor Summary
ConstructorsConstructorDescriptionContNodeIteratorImpl(Iterator<Statement> iterator, Container cont) Creates new ContNodeIteratorImpl -
Method Summary
Methods inherited from class org.apache.jena.util.iterator.NiceIterator
andThen, andThen, asList, asSet, close, close, emptyIterator, filterDrop, filterKeep, mapWith, removeNext, toList, toSetMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.util.iterator.ExtendedIterator
andThen, filterDrop, filterKeep, forEach, mapWith, nextOptional, removeNext, toList, toSetMethods inherited from interface java.util.Iterator
forEachRemainingMethods inherited from interface org.apache.jena.rdf.model.NodeIterator
close
-
Constructor Details
-
ContNodeIteratorImpl
Creates new ContNodeIteratorImpl
-
-
Method Details
-
next
Description copied from class:NiceIteratordefault next: throw an exception.- Specified by:
nextin interfaceIterator<RDFNode>- Specified by:
nextin interfaceNodeIterator- Overrides:
nextin classNiceIterator<RDFNode>- Returns:
- The next RDFNode from the iteration.
- Throws:
NoSuchElementException- if there are no more nodes to be returned.
-
hasNext
public boolean hasNext()Description copied from class:NiceIteratordefault hasNext: no elements, return false.- Specified by:
hasNextin interfaceIterator<RDFNode>- Specified by:
hasNextin interfaceNodeIterator- Overrides:
hasNextin classNiceIterator<RDFNode>- Returns:
- true if and only if there are more values available from the iteration.
-
nextNode
Description copied from interface:NodeIteratorReturn the next RDFNode of the iteration.- Specified by:
nextNodein interfaceNodeIterator- Returns:
- The next RDFNode from the iteration.
- Throws:
NoSuchElementException- if there are no more nodes to be returned.
-
remove
Description copied from class:NiceIteratordefault remove: we have no elements, so we can't remove any.- Specified by:
removein interfaceIterator<RDFNode>- Specified by:
removein interfaceNodeIterator- Overrides:
removein classNiceIterator<RDFNode>- Throws:
NoSuchElementException
-