private boolean checkForFullMatch(InFlightBatch inFlightBatch, long firstOffsetToCompare, long lastOffsetToCompare) {
        return inFlightBatch.firstOffset() >= firstOffsetToCompare && inFlightBatch.lastOffset() <= lastOffsetToCompare;
    }
Check if the in-flight batch is a full match with the request offsets. The full match represents
complete overlap of the in-flight batch with the request offsets.

@param inFlightBatch The in-flight batch to check for full match.
@param firstOffsetToCompare The first offset of the request batch.
@param lastOffsetToCompare The last offset of the request batch.

@return True if the in-flight batch is a full match with the request offsets, false otherwise.
core/src/main/java/kafka/server/share/SharePartition.java