Class PredicateWrapperExpression<T,R>
- java.lang.Object
-
- org.apache.qpid.server.query.engine.parsing.expression.AbstractExpressionNode<T,Boolean>
-
- org.apache.qpid.server.query.engine.parsing.expression.logic.PredicateWrapperExpression<T,R>
-
- Type Parameters:
T- Input parameter type
- All Implemented Interfaces:
Function<T,Boolean>,Predicate<T>,Expression<T,Boolean>,ExpressionNode<T,Boolean>
public class PredicateWrapperExpression<T,R> extends AbstractExpressionNode<T,Boolean> implements Predicate<T>
Wraps an expression into a predicate.
-
-
Field Summary
-
Fields inherited from class org.apache.qpid.server.query.engine.parsing.expression.AbstractExpressionNode
_metadata
-
-
Constructor Summary
Constructors Constructor Description PredicateWrapperExpression(ExpressionNode<T,R> expression)Constructor stores the expression value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Booleanapply(T value)Calls stored expression using parameters and the value suppliedbooleantest(T value)Calls stored expression using parameters and the value supplied-
Methods inherited from class org.apache.qpid.server.query.engine.parsing.expression.AbstractExpressionNode
containsAggregation, ctx, evaluateChild, getAggregations, getAlias, getChild, getChildren, getParent, isAccessor, isInstantlyEvaluable, setAlias, setParent, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.qpid.server.query.engine.parsing.expression.Expression
andThen
-
-
-
-
Constructor Detail
-
PredicateWrapperExpression
public PredicateWrapperExpression(ExpressionNode<T,R> expression)
Constructor stores the expression value- Parameters:
expression- Expression to evaluate
-
-
Method Detail
-
test
public boolean test(T value)
Calls stored expression using parameters and the value supplied
-
-