@InternalApi public class StandardComparator<A extends Comparable<A>> extends Object implements Comparator<A>
Modifier and Type | Method and Description |
---|---|
int |
compare(A o1,
A o2) |
static <T extends Comparable<T>> |
getComparator(Class<T> clazz) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static <T extends Comparable<T>> StandardComparator<T> getComparator(Class<T> clazz)
public int compare(A o1, A o2)
compare
in interface Comparator<A extends Comparable<A>>
Copyright © 2019 Google LLC. All rights reserved.