public NumberRange(Number min, Number max) { if (min == null) { throw new NullPointerException("The minimum value must not be null"); } else if (max == null) { throw new NullPointerException("The maximum value must not be null");
public NumberRange(Number num) { if (num == null) { throw new NullPointerException("The number must not be null");
    public NumberRange(Number min, Number max) {        if (min == null) {            throw new NullPointerException("The minimum value must not be null");        } else if (max == null) {            throw new NullPointerException("The maximum value must not be null");        }        if (max.doubleValue() < min.doubleValue()) {            this.min = this.max = min;        } else {            this.min = min;            this.max = max;        }    }