Class BetweenExpression<T,​R>

  • Type Parameters:
    T - Input parameter type
    R - Output parameter type
    All Implemented Interfaces:
    java.util.function.Function<T,​java.lang.Boolean>, java.util.function.Predicate<T>, Expression<T,​java.lang.Boolean>, ExpressionNode<T,​java.lang.Boolean>

    public class BetweenExpression<T,​R>
    extends AbstractComparisonExpression<T,​java.lang.Boolean>
    Comparison BETWEEN operation. Evaluates given value against low and high parameters (inclusive).
    • Constructor Detail

      • BetweenExpression

        public BetweenExpression​(java.lang.String alias,
                                 ExpressionNode<T,​?> left,
                                 ExpressionNode<T,​?> low,
                                 ExpressionNode<T,​?> high)
        Constructor initializes children expression list
        Parameters:
        alias - Expression alias
        left - Left child expression
        low - Low child expression
        high - High child expression
    • Method Detail

      • apply

        public java.lang.Boolean apply​(T value)
        Performs BETWEEN comparison using parameters and the value supplied
        Parameters:
        value - Object to handle
        Returns:
        Boolean result of value evaluation