Package org.fest.assertions.util
Class BigDecimalComparator
- java.lang.Object
-
- org.fest.assertions.util.BigDecimalComparator
-
- All Implemented Interfaces:
java.util.Comparator<java.math.BigDecimal>
public class BigDecimalComparator extends java.lang.Object implements java.util.Comparator<java.math.BigDecimal>
ABigDecimal
Comparator
based onBigDecimal.compareTo(BigDecimal)
.
Is useful if ones wants to use BigDecimal assertions based onBigDecimal.compareTo(BigDecimal)
instead ofBigDecimal.equals(Object)
method.- Author:
- Joel Costigliola
-
-
Field Summary
Fields Modifier and Type Field Description static BigDecimalComparator
BIG_DECIMAL_COMPARATOR
an instance ofBigDecimalComparator
.
-
Constructor Summary
Constructors Constructor Description BigDecimalComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(java.math.BigDecimal bigDecimal1, java.math.BigDecimal bigDecimal2)
-
-
-
Field Detail
-
BIG_DECIMAL_COMPARATOR
public static final BigDecimalComparator BIG_DECIMAL_COMPARATOR
an instance ofBigDecimalComparator
.
-
-