Improve the equals method of ConsumerRecord.
Merge the code.