public class BigExponentComparator extends Object implements Comparator<BigInteger>
PolynomialZ
.Constructor and Description |
---|
BigExponentComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(BigInteger x,
BigInteger 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(BigInteger x, BigInteger y)
compare
in interface Comparator<BigInteger>
x
- the first number to be comparedy
- the second number to be comparedx>y
, 0 if x==y
, or 1 if x<y