@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        } else if (!(o instanceof ComparatorExpression)) {
            return false;
        }
        ComparatorExpression that = (ComparatorExpression) o;
        return getLeft().equals(that.getLeft())
                && getRight().equals(that.getRight())
                && getComparator().equals(that.getComparator());
    }
Gets the comparator to apply to the left and right expressions.

@return Returns the comparator.
smithy-jmespath/src/main/java/software/amazon/smithy/jmespath/ast/ComparatorExpression.java