T
- type of valuepublic class Not<T> extends Object implements ValuePredicate<T>
Constructor and Description |
---|
Not(ValuePredicate<T> factor)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(T expected,
T actual)
Returns
true iff both values satisfy this predicate. |
String |
describeExpected(T expected,
T actual)
Returns an expected value as readable text.
|
public Not(ValuePredicate<T> factor)
factor
- the child predicate to be negatedIllegalArgumentException
- if some parameters were null
public boolean accepts(T expected, T actual)
ValuePredicate
true
iff both values satisfy this predicate.accepts
in interface ValuePredicate<T>
expected
- the expected value (nullable)actual
- the actual value (nullable)true
iff both values satisfy this predicate, false
otherwise.public String describeExpected(T expected, T actual)
ValuePredicate
describeExpected
in interface ValuePredicate<T>
expected
- the expected value (nullable)actual
- the actual value (nullable)null
if is always/never expectedCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.