Class ExpressionWrapperExpression<T>
- java.lang.Object
-
- org.apache.qpid.server.query.engine.parsing.expression.AbstractExpressionNode<T,java.lang.Boolean>
-
- org.apache.qpid.server.query.engine.parsing.expression.logic.ExpressionWrapperExpression<T>
-
- Type Parameters:
T- Input parameter type
- All Implemented Interfaces:
java.util.function.Function<T,java.lang.Boolean>,Expression<T,java.lang.Boolean>,ExpressionNode<T,java.lang.Boolean>
public class ExpressionWrapperExpression<T> extends AbstractExpressionNode<T,java.lang.Boolean>
Wraps predicate into an expression.
-
-
Field Summary
-
Fields inherited from class org.apache.qpid.server.query.engine.parsing.expression.AbstractExpressionNode
_metadata
-
-
Constructor Summary
Constructors Constructor Description ExpressionWrapperExpression(java.util.function.Predicate<T> predicate)Constructor stores the predicate value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Booleanapply(T value)Calls stored predicate 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
-
ExpressionWrapperExpression
public ExpressionWrapperExpression(java.util.function.Predicate<T> predicate)
Constructor stores the predicate value- Parameters:
predicate- Predicate to evaluate
-
-
Method Detail
-
apply
public java.lang.Boolean apply(T value)
Calls stored predicate using parameters and the value supplied- Parameters:
value- Object to handle- Returns:
- Evaluation result
-
-