Class OptDirectedNode.RelatedIterator

Object
RelatedIterator
All Implemented Interfaces:
Iterator<Node>
Enclosing class:
OptDirectedNode

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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    both iteration mode *
    static final int
    in iteration mode *
    static final int
    out iteration mode *
  • Constructor Summary

    Constructors
    Constructor
    Description
    RelatedIterator(int mode)
    Constructs a new iterator.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Determines if there are any more related nodes to return.
    Returns the next related node.
    void
    Not supported.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface Iterator

    forEachRemaining
  • Field Details

  • Constructor Details

    • RelatedIterator

      public RelatedIterator(int mode)
      Constructs a new iterator.
      Parameters:
      mode - Iteration mode.
  • Method Details

    • 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:
    • next

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