code: public static boolean contains(Range range, double value) {
          return value >= range.getMinimum().doubleValue() && value <= range.getMaximum().doubleValue();
      }
docs: Determines whether the value is contained by the range or not.
  
  @param range a range
  @param value a value
  @return true if the value is within the range