T
- is the type of the compared objects.public class ObjectComparator<T> extends Object implements Comparator<T>
Modifier and Type | Field and Description |
---|---|
static ObjectComparator<Object> |
SINGLETON |
Modifier and Type | Method and Description |
---|---|
int |
compare(o1 : T,
o2 : T) |
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 val
SINGLETON : ObjectComparator<Object>
public def
compare(o1 : T,
o2 : T) : int
compare
in interface Comparator<T>
Copyright © 2021 the original authors or authors.