public boolean isInsideRange(final DataRange other) {
        if (other == null) {
            return false;
        } else if (locationFrom != null && locationTo != null) {
            return isInsideRange(other, DataRange::getLocationFrom, DataRange::getLocationTo);
        } else if (byteOffsetFrom != null && byteOffsetTo != null) {
            return isInsideRange(other, DataRange::getByteOffsetFrom, DataRange::getByteOffsetTo);
        } else {
            return false;
        }
    }
@return True if all of this range is inside or is identical to
the other range.
stroom-util-shared/src/main/java/stroom/util/shared/DataRange.java