Class SortedIterables


  • @GwtCompatible
    final class SortedIterables
    extends java.lang.Object
    Utilities for dealing with sorted collections of all types.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private SortedIterables()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <E> java.util.Comparator<? super E> comparator​(java.util.SortedSet<E> sortedSet)  
      static boolean hasSameComparator​(java.util.Comparator<?> comparator, java.lang.Iterable<?> elements)
      Returns true if elements is a sorted collection using an ordering equivalent to comparator.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SortedIterables

        private SortedIterables()
    • Method Detail

      • hasSameComparator

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

        public static <E> java.util.Comparator<? super E> comparator​(java.util.SortedSet<E> sortedSet)