public boolean contains(final long num) {
        // If we have a lower bound check that the time is not before it.
        if (from != null && num < from.longValue()) {
            return false;
        }
        // If we have an upper bound check that the time is not ON or after it.
        if (to != null && num >= to.longValue()) {
            return false;
        }

        // Must be covered in our period then
        return true;
    }
Does this range contain this number?
stroom-legacy/stroom-legacy-model_6_1/src/main/java/stroom/legacy/model_6_1/Range.java