public class DecimalCompare extends Object implements ValuePredicate<BigDecimal>
actual-value <compare-operator> expected-value.| Constructor and Description |
|---|
DecimalCompare(CompareOperator operator)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(BigDecimal expected,
BigDecimal actual)
Returns
true iff both values satisfy this predicate. |
String |
describeExpected(BigDecimal expected,
BigDecimal actual)
Returns an expected value as readable text.
|
public DecimalCompare(CompareOperator operator)
operator - the comparison operatorIllegalArgumentException - if operator is nullpublic boolean accepts(BigDecimal expected, BigDecimal actual)
ValuePredicatetrue iff both values satisfy this predicate.accepts in interface ValuePredicate<BigDecimal>expected - the expected value (nullable)actual - the actual value (nullable)true iff both values satisfy this predicate, false otherwise.public String describeExpected(BigDecimal expected, BigDecimal actual)
ValuePredicatedescribeExpected in interface ValuePredicate<BigDecimal>expected - the expected value (nullable)actual - the actual value (nullable)null if is always/never expectedCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.