public class ExponentComparator extends Object implements Comparator<Integer>
Polynomial
.Constructor and Description |
---|
ExponentComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Integer x,
Integer y)
Compares its two arguments for order, which is reverse than the usual order.
|
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(Integer x, Integer y)
compare
in interface Comparator<Integer>
x
- the first number to be comparedy
- the second number to be comparedx>y
, 0 if x==y
, or 1 if x<y