public boolean isBefore(final DataRange other) {
        if (other == null) {
            return false;
        } else if (locationFrom != null) {
            return Comparator.comparing(DataRange::getLocationFrom).compare(this, other) < 0;
        } else if (byteOffsetFrom != null) {
            return Comparator.comparing(DataRange::getByteOffsetFrom).compare(this, other) < 0;
        } 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