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.
        return to == null || num < to.longValue();

        // Must be covered in our period then
    }
Does this range contain this number?
stroom-util-shared/src/main/java/stroom/util/shared/Range.java