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

        LogOffsetSnapshot that = (LogOffsetSnapshot) o;

        return logStartOffset == that.logStartOffset &&
                Objects.equals(logEndOffset, that.logEndOffset) &&
                Objects.equals(highWatermark, that.highWatermark) &&
                Objects.equals(lastStableOffset, that.lastStableOffset);
    }
Container class which represents a snapshot of the significant offsets for a partition. This allows fetching
of these offsets atomically without the possibility of a leader change affecting their consistency relative
to each other. See {@link UnifiedLog#fetchOffsetSnapshot()}.
storage/src/main/java/org/apache/kafka/storage/internals/log/LogOffsetSnapshot.java