Class OrExpression<T>

  • Type Parameters:
    T - Input 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 OrExpression<T>
    extends AbstractExpressionNode<T,​java.lang.Boolean>
    implements java.util.function.Predicate<T>
    Logical OR expression.
    • Constructor Detail

      • OrExpression

        public OrExpression​(java.lang.String alias,
                            ExpressionNode<T,​?> left,
                            ExpressionNode<T,​?> right)
        Constructor initializes children expression list
        Parameters:
        alias - Expression alias
        left - Left expression
        right - Right expression
    • Method Detail

      • apply

        public java.lang.Boolean apply​(T value)
        Performs logical OR operation using parameters and the value supplied
        Specified by:
        apply in interface Expression<T,​java.lang.Boolean>
        Specified by:
        apply in interface java.util.function.Function<T,​java.lang.Boolean>
        Parameters:
        value - Object to handle
        Returns:
        Evaluation result
      • test

        public boolean test​(T value)
        Performs logical OR operation using parameters and the value supplied
        Specified by:
        test in interface java.util.function.Predicate<T>
        Parameters:
        value - Object to handle
        Returns:
        Evaluation result