@Override
    public int hashCode() {
        int result = (int) (timestamp ^ (timestamp >>> 32));
        result = 31 * result + (int) (offset ^ (offset >>> 32));
        result = 31 * result + leaderEpoch.hashCode();
        return result;
    }
Internal representation of {@link OffsetAndTimestamp} to allow negative timestamps and offset.
clients/src/main/java/org/apache/kafka/clients/consumer/internals/OffsetAndTimestampInternal.java