Interface IBackwardsIterable<T>

Type Parameters:
T - the type of elements returned by the iterator
All Known Implementing Classes:
BoundedTimeSeries, TimeSeries

public interface IBackwardsIterable<T>
Implementing this interface allows an object to get iterated backwards. The object returned by backwards() can be used by a "foreach" statement.
Since:
1.14
Author:
Sören Henning
  • Method Summary

    Modifier and Type Method Description
    default java.lang.Iterable<T> backwards()
    Returns an Iterable that iterates the elements backwards using the Iterator returned by backwardsIterator().
    java.util.Iterator<T> backwardsIterator()
    Returns an Iterator that iterates the elements backwards.
  • Method Details

    • backwardsIterator

      java.util.Iterator<T> backwardsIterator()
      Returns an Iterator that iterates the elements backwards.
      Returns:
      returns the iterator
      Since:
      1.14
    • backwards

      default java.lang.Iterable<T> backwards()
      Returns an Iterable that iterates the elements backwards using the Iterator returned by backwardsIterator().
      Returns:
      returns an iterable
      Since:
      1.14