@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        CSVResult csvResult = (CSVResult) o;
        return Double.compare(csvResult.confidence, confidence) == 0 &&
                mediaType.equals(csvResult.mediaType) &&
                Objects.equals(delimiter, csvResult.delimiter);
    }
Sorts in descending order of confidence

@param o
@return
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-text-module/src/main/java/org/apache/tika/parser/csv/CSVResult.java