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