Class SortedIterables

java.lang.Object
com.google.common.collect.SortedIterables

final class SortedIterables extends Object
Utilities for dealing with sorted collections of all types.
  • Constructor Details

    • SortedIterables

      private SortedIterables()
  • Method Details

    • hasSameComparator

      public static boolean hasSameComparator(Comparator<?> comparator, Iterable<?> elements)
      Returns true if elements is a sorted collection using an ordering equivalent to comparator.
    • comparator

      public static <E> Comparator<? super E> comparator(SortedSet<E> sortedSet)