public final class LongComparator extends Object implements Comparator, Serializable
Constructor and Description |
---|
LongComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Object obj1,
Object obj2)
Compare two objects.
|
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 int compare(Object obj1, Object obj2)
compare
in interface Comparator
obj1
- First objectobj2
- Second objectCopyright © 2003–2015 The Apache Software Foundation. All rights reserved.