public class BigIntegerComparator extends AbstractComparableNumberComparator<BigInteger>
BigInteger
Comparator
based on BigInteger.compareTo(BigInteger)
.BigInteger.compareTo(BigInteger)
instead of
BigInteger.equals(Object)
method.Modifier and Type | Field and Description |
---|---|
static BigIntegerComparator |
BIG_INTEGER_COMPARATOR
an instance of
BigIntegerComparator . |
Constructor and Description |
---|
BigIntegerComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(T o1,
T o2) |
compareNonNull
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 BigIntegerComparator BIG_INTEGER_COMPARATOR
BigIntegerComparator
.public int compare(T o1, T o2)
compare
in interface Comparator<T>
Copyright © 2014–2019 AssertJ. All rights reserved.