Class ContNodeIteratorImpl

    • Constructor Detail

      • ContNodeIteratorImpl

        public ContNodeIteratorImpl​(java.util.Iterator<Statement> iterator,
                                    java.lang.Object ignored,
                                    Container cont)
        Creates new ContNodeIteratorImpl
    • Method Detail

      • next

        public RDFNode next()
                     throws java.util.NoSuchElementException
        Description copied from class: NiceIterator
        default next: throw an exception.
        Specified by:
        next in interface java.util.Iterator<RDFNode>
        Specified by:
        next in interface NodeIterator
        Overrides:
        next in class NiceIterator<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 interface java.util.Iterator<RDFNode>
        Specified by:
        hasNext in interface NodeIterator
        Overrides:
        hasNext in class NiceIterator<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 interface NodeIterator
        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 interface java.util.Iterator<RDFNode>
        Specified by:
        remove in interface NodeIterator
        Overrides:
        remove in class NiceIterator<RDFNode>
        Throws:
        java.util.NoSuchElementException