public boolean hasPrecedenceOver(Operator other) {
        if (operatorsByPrecedence.indexOf(this) == operatorsByPrecedence.indexOf(other))
            return rightPrecedence;
        return operatorsByPrecedence.indexOf(this) > operatorsByPrecedence.indexOf(other);
    }
Returns true if this operator has precedence over the given operator
searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/Operator.java