Class RoutingTable.HopIterator

  • Enclosing class:
    RoutingTable

    public static class RoutingTable.HopIterator
    extends java.lang.Object
    Implements an iterator for the hops of this. Use RoutingTable.getHopIterator() to retrieve an instance of this.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      HopBlueprint getHop()
      Returns the current hop.
      java.lang.String getName()
      Returns the name of the current hop.
      boolean isValid()
      Returns whether or not this iterator is valid.
      void next()
      Steps to the next hop in the map.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • next

        public void next()
        Steps to the next hop in the map.
      • isValid

        public boolean isValid()
        Returns whether or not this iterator is valid.
        Returns:
        True if valid.
      • getName

        public java.lang.String getName()
        Returns the name of the current hop.
        Returns:
        The name.
      • getHop

        public HopBlueprint getHop()
        Returns the current hop.
        Returns:
        The hop.