public abstract class Predicate extends Condition
Modifier | Constructor and Description |
---|---|
protected |
Predicate(Expression expression,
boolean evaluateTo)
Construct a predicate with given expression.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluateTo()
Returns if the predicate should evaluate to
true or false . |
Expression |
expression()
Expression to apply the predicate to.
|
Condition |
not()
Builder method to invert a condition.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accept
protected Predicate(Expression expression, boolean evaluateTo)
expression
- Expression to apply the predicate to.evaluateTo
- What is the expected result of the evaluation?public final Expression expression()
public final boolean evaluateTo()
true
or false
.true
if the predicate should evaluate to true
,
false
otherwise.Copyright © 2018. All rights reserved.