Class NodeIteratorAdapter

    • Constructor Detail

      • NodeIteratorAdapter

        public NodeIteratorAdapter​(RangeIterator iterator)
        Creates an adapter for the given RangeIterator.
        Parameters:
        iterator - iterator of Nodes
      • NodeIteratorAdapter

        public NodeIteratorAdapter​(java.util.Iterator iterator)
        Creates an adapter for the given Iterator.
        Parameters:
        iterator - iterator of Nodes
      • NodeIteratorAdapter

        public NodeIteratorAdapter​(java.util.Iterator iterator,
                                   long size)
      • NodeIteratorAdapter

        public NodeIteratorAdapter​(java.util.Collection collection)
        Creates an iterator for the given collection.
        Parameters:
        collection - collection of Nodes
    • Method Detail

      • nextNode

        public Node nextNode()
                      throws java.util.NoSuchElementException
        Returns the next node.
        Specified by:
        nextNode in interface NodeIterator
        Returns:
        next node
        Throws:
        java.util.NoSuchElementException - if there is no next node