public function comparison(DynamicOperand $operand1, $operator, $operand2 = null)
    {
        return new Comparison($operand1, $operator, $operand2);
    }
public function comparison(DynamicOperand $operand1, $operator, $operand2 = null)
    {
        return new Comparison($operand1, $operator, $operand2);
    }
public function comparison ( DynamicOperand $ operand1 , $ operator , $ operand2 = null ) { return new Comparison ( $ operand1 , $ operator , $ operand2 ) ; }
Filters tuples based on the outcome of a binary operation.

@param DynamicOperand $operand1 the first operand; non-null
@param string $operator the operator; one of QueryObjectModelConstants.JCR_OPERATOR_*
@param mixed $operand2 the second operand; non-null
@return Comparison the constraint; non-null
@api
Filters tuples based on the outcome of a binary operation .