@Override
    public boolean equals(Object o) {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;

        TimestampOffset that = (TimestampOffset) o;

        return timestamp == that.timestamp
            && offset == that.offset;
    }
Create a TimestampOffset with the provided parameters.

@param timestamp The max timestamp before the given offset.
@param offset The message offset.
storage/src/main/java/org/apache/kafka/storage/internals/log/TimestampOffset.java