Interface BidiIterator<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean hasPrevious()
      Returns true if this bidi iterator has more elements when traversing in the reverse direction.
      T previous()
      Returns the previous element.
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, hasNext, next, remove
    • Method Detail

      • hasPrevious

        boolean hasPrevious()
        Returns true if this bidi iterator has more elements when traversing in the reverse direction. (In other words, returns true if previous would return an element rather than throwing an exception.)
        Returns:
        true if the bidi iterator has more elements when traversing in the reverse direction.
      • previous

        T previous()
        Returns the previous element. This method may be called repeatedly to iterate backwards, or intermixed with calls to next to go back and forth. (Note that alternating calls to next and previous will return the same element repeatedly.)
        Returns:
        the previous element.
        Throws:
        java.util.NoSuchElementException - if the iteration has no previous element.