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