public class ContNodeIteratorImpl extends NiceIterator<RDFNode> implements NodeIterator
Constructor and Description |
---|
ContNodeIteratorImpl(Iterator<Statement> iterator,
Object ignored,
Container cont)
Creates new ContNodeIteratorImpl
|
Modifier and Type | Method and 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.
|
andThen, andThen, asList, asSet, close, close, emptyIterator, filterDrop, filterKeep, mapWith, removeNext, toList, toSet
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
andThen, filterDrop, filterKeep, forEach, mapWith, nextOptional, removeNext, toList, toSet
forEachRemaining
public RDFNode next() throws NoSuchElementException
NiceIterator
next
in interface Iterator<RDFNode>
next
in interface NodeIterator
next
in class NiceIterator<RDFNode>
NoSuchElementException
- if there are no more nodes to be returned.public boolean hasNext()
NiceIterator
hasNext
in interface Iterator<RDFNode>
hasNext
in interface NodeIterator
hasNext
in class NiceIterator<RDFNode>
public RDFNode nextNode() throws NoSuchElementException
NodeIterator
nextNode
in interface NodeIterator
NoSuchElementException
- if there are no more nodes to be returned.public void remove() throws NoSuchElementException
NiceIterator
remove
in interface Iterator<RDFNode>
remove
in interface NodeIterator
remove
in class NiceIterator<RDFNode>
NoSuchElementException
Licenced under the Apache License, Version 2.0