public class ShortComparator extends Object implements Comparator<Short>
Modifier and Type | Field and Description |
---|---|
static ShortComparator |
INSTANCE
A static instance of a ShortComparator
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Short short1,
Short short2)
Compare two shorts.
|
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 ShortComparator INSTANCE
public int compare(Short short1, Short short2)
compare
in interface Comparator<Short>
short1
- First shortshort2
- Second shortCopyright © 2012–2022 Apache Mavibot Project Parent. All rights reserved.