Class OptDirectedEdge.RelatedIterator

  • All Implemented Interfaces:
    Iterator<Graphable>
    Enclosing class:
    OptDirectedEdge

    public class OptDirectedEdge.RelatedIterator
    extends Object
    implements Iterator<Graphable>
    Iterator used to iterate over adjacent edges.
    Author:
    Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int BOTH
      both mode *
      static int IN
      in mode *
      static int OUT
      out mode *
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()
      Determines if there are any more related edges to return.
      Graphable next()
      Returns the next related edge.
      void remove()
      Unsupported Operation.
      • 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​(int mode)
        Constructs a new iterator.
        Parameters:
        mode - Iteration mode.
    • Method Detail

      • remove

        public void remove()
        Unsupported Operation.
        Specified by:
        remove in interface Iterator<Graphable>
      • hasNext

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

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