public class BoundUnaryPredicate<T> extends BoundPredicate<T>
Expression.Operation| Modifier and Type | Method and Description |
|---|---|
BoundUnaryPredicate<T> |
asUnaryPredicate() |
boolean |
isEquivalentTo(Expression other)
Returns whether this expression will accept the same values as another.
|
boolean |
isUnaryPredicate() |
Expression |
negate()
Returns the negation of this expression, equivalent to not(this).
|
boolean |
test(T value) |
java.lang.String |
toString() |
asLiteralPredicate, asSetPredicate, eval, isLiteralPredicate, isSetPredicate, ref, testpublic Expression negate()
Expressionpublic boolean isUnaryPredicate()
isUnaryPredicate in class BoundPredicate<T>public BoundUnaryPredicate<T> asUnaryPredicate()
asUnaryPredicate in class BoundPredicate<T>public boolean test(T value)
test in class BoundPredicate<T>public boolean isEquivalentTo(Expression other)
ExpressionIf this returns true, the expressions are guaranteed to return the same evaluation for the same input. However, if this returns false the expressions may return the same evaluation for the same input. That is, expressions may be equivalent even if this returns false.
For best results, rewrite not and bind expressions before calling this method.
other - another expressionpublic java.lang.String toString()
toString in class java.lang.Object