Class BinaryOperator

    • Method Detail

      • getLeftOperand

        public FilterExpression getLeftOperand()
        Returns the first (left) operand of this binary expression.
        Returns:
        the left operand of a binary expression.
      • getRightOperand

        public FilterExpression getRightOperand()
        Returns the right operand of this binary expression.
        Returns:
        the right operand of a binary expression.
      • fromOperator

        @Contract(pure=true)
        public static BinaryOperator fromOperator​(FilterExpression leftOperand,
                                                  @Nonnull
                                                  org.heigit.ohsome.oshdb.filter.BinaryOperator.Type operator,
                                                  FilterExpression rightOperand)
        Returns a new binary operator object fulfilling the given "operator" and two operands (a "left" and a "right" sub-expressions).
        Parameters:
        leftOperand - The left operand.
        operator - The operator, such as "and" or "or".
        rightOperand - The right operand.
        Returns:
        A new binary operator object fulfilling the given "operator" on two sub-expressions.