Package org.assertj.core.util
Class BigIntegerComparator
java.lang.Object
org.assertj.core.util.AbstractComparableNumberComparator<BigInteger>
org.assertj.core.util.BigIntegerComparator
- All Implemented Interfaces:
Comparator<BigInteger>
A
Is useful if ones wants to use BigInteger assertions based on
BigInteger
Comparator
based on BigInteger.compareTo(BigInteger)
.Is useful if ones wants to use BigInteger assertions based on
BigInteger.compareTo(BigInteger)
instead of
BigInteger.equals(Object)
method.-
Field Summary
Modifier and TypeFieldDescriptionstatic final BigIntegerComparator
an instance ofBigIntegerComparator
. -
Constructor Summary
-
Method Summary
Methods inherited from class org.assertj.core.util.AbstractComparableNumberComparator
compareNonNull
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
BIG_INTEGER_COMPARATOR
an instance ofBigIntegerComparator
.
-
-
Constructor Details
-
BigIntegerComparator
public BigIntegerComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<T>
-