Class OrExpression<T>

    • Constructor Detail

      • OrExpression

        public OrExpression​(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 Boolean apply​(T value)
        Performs logical OR operation using parameters and the value supplied
        Specified by:
        apply in interface Expression<T,​Boolean>
        Specified by:
        apply in interface Function<T,​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 Predicate<T>
        Parameters:
        value - Object to handle
        Returns:
        Evaluation result