public boolean intersect(long startOffset, long endOffset) {
        return startOffset <= endOffset
            && startOffset >= this.startOffset && startOffset <= this.endOffset
            && endOffset <= this.endOffset;
    }
StreamOffsetRange represents <code>[startOffset, endOffset)</code> in the stream.
s3stream/src/main/java/com/automq/stream/s3/metadata/StreamOffsetRange.java