Package org.assertj.core.util
Class BigDecimalComparator
java.lang.Object
org.assertj.core.util.AbstractComparableNumberComparator<BigDecimal>
org.assertj.core.util.BigDecimalComparator
- All Implemented Interfaces:
Comparator<BigDecimal>
A
Is useful if ones wants to use BigDecimal assertions based on
BigDecimal Comparator based on BigDecimal.compareTo(BigDecimal).Is useful if ones wants to use BigDecimal assertions based on
BigDecimal.compareTo(BigDecimal) instead of
BigDecimal.equals(Object) method.- Author:
- Joel Costigliola
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BigDecimalComparatoran instance ofBigDecimalComparator. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.assertj.core.util.AbstractComparableNumberComparator
compareNonNullMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
BIG_DECIMAL_COMPARATOR
an instance ofBigDecimalComparator.
-
-
Constructor Details
-
BigDecimalComparator
public BigDecimalComparator()
-
-
Method Details
-
toString
-
compare
- Specified by:
comparein interfaceComparator<T>
-