Class OptNode.RelatedIterator

  • All Implemented Interfaces:
    Iterator<Node>
    Enclosing class:
    OptNode

    public class OptNode.RelatedIterator
    extends Object
    implements Iterator<Node>
    An iterator used to iterate over related nodes.
    Author:
    Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()
      Determines if there are any more related nodes to return.
      Node next()
      Returns the next related node.
      void remove()
      Not supported.
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface Iterator

        forEachRemaining
    • Constructor Detail

      • RelatedIterator

        public RelatedIterator​(OptNode node)
    • Method Detail

      • remove

        public void remove()
        Not supported.
        Specified by:
        remove in interface Iterator<Node>
      • hasNext

        public boolean hasNext()
        Determines if there are any more related nodes to return.
        Specified by:
        hasNext in interface Iterator<Node>
        See Also:
        Iterator.hasNext()
      • next

        public Node next()
        Returns the next related node.
        Specified by:
        next in interface Iterator<Node>
        See Also:
        Iterator.next()