/** * Checks that the value is within the range [0.0, 1.0]. * @param value the value to check * @throws IllegalArgumentException if value is not in the range [0.0,1.0] */ protected final void rangeCheck(double value){ if(!isValid(value)){ throw new IllegalArgumentException("NormalizedRange must be within " + "the range [0.0, 1.0] (0.0 <= val <= 1.0)."); } }