Interface Iterator<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Iterator<T> clone()
      Creates a copy of the iterator.
      boolean hasValue()
      Checks if the iterator is not exhausted (a value is available).
      void init()
      Initializes the iterator.
      void next()
      Makes an iteration.
      void stop()
      Stops the iterator.
      T value()
      Returns the current value of the iterator.
    • Method Detail

      • init

        void init()
        Initializes the iterator.
      • hasValue

        boolean hasValue()
        Checks if the iterator is not exhausted (a value is available).
        Returns:
        true if the iterator is not exhausted; false otherwise.
      • value

        T value()
        Returns the current value of the iterator.
        Returns:
        the current value of the iterator.
      • next

        void next()
        Makes an iteration.
      • stop

        void stop()
        Stops the iterator.
      • clone

        Iterator<T> clone()
        Creates a copy of the iterator.
        Returns:
        A copy of the iterator.