T - the type to compareC - the type of the comparable key@GwtCompatible public final class KeyComparator<T,C extends Comparable<? super C>> extends Object implements Comparator<T>
| Constructor and Description |
|---|
KeyComparator(Functions.Function1<? super T,C> keyFunction) |
public KeyComparator(Functions.Function1<? super T,C> keyFunction)
keyFunction - the key function to use for comparing objects. May not be nullpublic int compare(T a, T b)
compare in interface Comparator<T>Copyright © 2015. All Rights Reserved.