Top Description Constructors Methods
com.google.common.collect

pack-priv final Class SortedIterables

extends Object
Class Inheritance
Annotations
@GwtCompatible
@ElementTypesAreNonnullByDefault
Static Imports
com.google.common.base.Preconditions.checkNotNull

Utilities for dealing with sorted collections of all types.
Author
Louis Wasserman

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static <E extends @Nullable Object> Comparator<? super E>
comparator(SortedSet<E> sortedSet)

public static boolean
hasSameComparator(Comparator<?> comparator, Iterable<?> elements)

Returns true if elements is a sorted collection using an ordering equivalent to comparator.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SortedIterablesback to summary
private SortedIterables()

Method Detail

comparatorback to summary
public static <E extends @Nullable Object> Comparator<? super E> comparator(SortedSet<E> sortedSet)
Annotations
@SuppressWarnings:unchecked
hasSameComparatorback to summary
public static boolean hasSameComparator(Comparator<?> comparator, Iterable<?> elements)

Returns true if elements is a sorted collection using an ordering equivalent to comparator.