public class BoundLiteralPredicate<T> extends BoundPredicate<T>
Expression.Operation
Modifier and Type | Method and Description |
---|---|
BoundLiteralPredicate<T> |
asLiteralPredicate() |
boolean |
isEquivalentTo(Expression expr)
Returns whether this expression will accept the same values as another.
|
boolean |
isLiteralPredicate() |
Literal<T> |
literal() |
Expression |
negate()
Returns the negation of this expression, equivalent to not(this).
|
boolean |
test(T value) |
java.lang.String |
toString() |
asSetPredicate, asUnaryPredicate, eval, isSetPredicate, isUnaryPredicate, ref, test
public Expression negate()
Expression
public boolean isLiteralPredicate()
isLiteralPredicate
in class BoundPredicate<T>
public BoundLiteralPredicate<T> asLiteralPredicate()
asLiteralPredicate
in class BoundPredicate<T>
public boolean test(T value)
test
in class BoundPredicate<T>
public boolean isEquivalentTo(Expression expr)
Expression
If 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.
expr
- another expressionpublic java.lang.String toString()
toString
in class java.lang.Object