Package org.fest.assertions.util
Class BigDecimalComparator
java.lang.Object
org.fest.assertions.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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
-
compare
- Specified by:
comparein interfaceComparator<BigDecimal>
-