@Override
    protected boolean equalsAggregation(AggregationResult obj) {
        return equals(max, ((MaxAggregationResult)obj).max);
    }
Sets the maximum value found in all matching hits.

@param max The value.
@return This, to allow chaining.
searchlib/src/main/java/com/yahoo/searchlib/aggregation/MaxAggregationResult.java