@Override
    public int compareTo(Bytes that) {
        return BYTES_LEXICO_COMPARATOR.compare(this.bytes, that.bytes);
    }
The hashcode is cached except for the case where it is computed as 0, in which
case we compute the hashcode on every call.

@return the hashcode
clients/src/main/java/org/apache/kafka/common/utils/Bytes.java