Interface SortedIterable<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Comparator<? super T> comparator()
      Returns the Comparator by which the elements of this iterable are ordered, or Ordering.natural() if the elements are ordered by their natural ordering.
      java.util.Iterator<T> iterator()
      Returns an iterator over elements of type T.
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • comparator

        java.util.Comparator<? super T> comparator()
        Returns the Comparator by which the elements of this iterable are ordered, or Ordering.natural() if the elements are ordered by their natural ordering.
      • iterator

        java.util.Iterator<T> iterator()
        Returns an iterator over elements of type T. The elements are returned in nondecreasing order according to the associated comparator().
        Specified by:
        iterator in interface java.lang.Iterable<T>