public class LongComparator extends Object implements Comparator<Long>
Modifier and Type | Field and Description |
---|---|
static LongComparator |
INSTANCE
A static instance of a LongComparator
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Long long1,
Long long2)
Compare two longs.
|
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 final LongComparator INSTANCE
public int compare(Long long1, Long long2)
compare
in interface Comparator<Long>
long1
- First longlong2
- Second longCopyright © 2012–2023 Apache Mavibot Project Parent. All rights reserved.