@Override
    public int hashCode() {
        int result = key != null ? key.hashCode() : 0;
        result = 31 * result + (value != null ? value.hashCode() : 0);
        result = 31 * result + Long.hashCode(timestamp);
        result = 31 * result + Arrays.hashCode(headers);
        return result;
    }
High-level representation of a kafka record. This is useful when building record sets to
avoid depending on a specific magic version.
clients/src/main/java/org/apache/kafka/common/record/SimpleRecord.java