public boolean isInsideRange(final Location from, final Location to) {
        final boolean result;
        if (this.from == null
                || this.to == null
                || from == null
                || to == null) {
            result = false;
        } else {
            result = this.getFrom().compareTo(from) >= 0
                    && this.getTo().compareTo(to) <= 0;
        }
        return result;
    }
@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/TextRange.java