public boolean isMatch(final T num) {
        if (isConstrained()) {
            return true;
        }
        if (from == null) {
            return num.longValue() < to.longValue();
        }
        if (to == null) {
            return num.longValue() >= from.longValue();
        }
        return num.longValue() >= from.longValue() && num.longValue() < to.longValue();
    }
Determine if a supplied time is within this period. Used for mock stream
store.
stroom-legacy/stroom-legacy-model_6_1/src/main/java/stroom/legacy/model_6_1/Range.java