if (max.doubleValue() < min.doubleValue()) { this.min = this.max = min; } else { this.min = min; this.max = max; }
this.min = num; this.max = num;
    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;        }    }