@Override public boolean equals(Object obj) { if (obj instanceof KafkaRecord) { @SuppressWarnings("unchecked") KafkaRecord<Object, Object> other = (KafkaRecord<Object, Object>) obj; return topic.equals(other.topic) && partition == other.partition && offset == other.offset && timestamp == other.timestamp && Objects.equal(headers, other.headers) && kv.equals(other.kv); } else { return false; } } }
@Override public boolean equals(Object obj) { if (obj instanceof KafkaRecord) { @SuppressWarnings("unchecked") KafkaRecord<Object, Object> other = (KafkaRecord<Object, Object>) obj; return topic.equals(other.topic) && partition == other.partition && offset == other.offset && timestamp == other.timestamp && Objects.equal(headers, other.headers) && kv.equals(other.kv); } else { return false; } } }