Interface BidirectionalIterator<T>

Type Parameters:
T - the type of element in the iterator
All Superinterfaces:
Iterator<T>

public interface BidirectionalIterator<T> extends Iterator<T>

An Iterator which can iterate back to previous elements.

Since:
2.0
Version:
2.0
Author:
Pavel Klinov
  • Method Details

    • hasPrevious

      boolean hasPrevious()
      Return whether or not there is a previous element
      Returns:
      true if there is a previous, false otherwise
    • previous

      T previous()
      Return the previous element
      Returns:
      the previous element