Sets the minimum value of the metric to be built.

@param value the minimum value of the metric
@param prettyPrintFormat the format of the output (@see {@link DecimalFormat})
@return this
10527
public MetricBuilder withMinValue(Number value, String prettyPrintFormat) {
        min = new MetricValue(value.toString(), prettyPrintFormat);            
        return this;
    }
248470
public static final BigDecimal printUnits(Number value)
   {
      return (value == null ? BIGDECIMAL_ONE : new BigDecimal(value.doubleValue() / 100));
   }
448791
static BigDecimal decimal(String value) {
        BigDecimal result;
        if (value != null) {
            value = value.trim();
            Matcher matcher = DECIMAL_PATTERN.matcher(value);
            if (matcher.matches()) {
                result = new BigDecimal(matcher.group(1));
            } else {
                throw new IllegalArgumentException("Unknown format for value: " + value);
            }
        } else {
            result = null;
        }
        return result;
    }
410120
public void setRemoteSeparator(final String value) {
    if (value != null && value.length() != 1) {
      throw new BuildException("remote separator must be a single character");
    }
    this.remoteSeparator = value.charAt(0);
  }
288561
public final void setJmsType(String value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setJmsType", value);
        getHdr2().setField(JsHdr2Access.JMSTYPE_DATA, value);
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setJmsType");
    }
86380
public final void setApiMessageId(String value) {

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setApiMessageId", value);
        if (value == null) {
            getApi().setField(JsApiAccess.MESSAGEID, null);
        }
        else if (value.startsWith(ID_STRING)) {
            byte[] binValue = HexString.hexToBin(value, 3);
            getApi().setField(JsApiAccess.MESSAGEID, binValue);
        }
        else {
            if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
                SibTr.exit(this, tc, "setApiMessageId", "IllegalArgumentException");
            throw new IllegalArgumentException();
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setApiMessageId");
    }
203699
public StringTextValue<String> setValue(final Integer value)
	{
		final String percentFormatted = getPercentFormatted(value);
		return setValue(percentFormatted);
	}
703186
private BigInteger printExtendedAttributeDurationFormat(Object value)
   {
      BigInteger result = null;
      if (value instanceof Duration)
      {
         result = DatatypeConverter.printDurationTimeUnits(((Duration) value).getUnits(), false);
      }
      return (result);
   }
126151
public static String createLabel(final double value, final String unit, final GridLabelFormat format) {
        final double zero = 0.000000001;
        if (format != null) {
            return format.format(value, unit);
        } else {
            if (Math.abs(value - Math.round(value)) < zero) {
                return String.format("%d %s", Math.round(value), unit);
            } else if ("m".equals(unit)) {
                // meter: no decimals
                return String.format("%1.0f %s", value, unit);
            } else if (NonSI.DEGREE_ANGLE.toString().equals(unit)) {
                // degree: by default 6 decimals
                return String.format("%1.6f %s", value, unit);
            } else {
                return String.format("%f %s", value, unit);
            }
        }
    }
176161
public RedGBuilder<T> withSqlValuesFormatter(final SQLValuesFormatter formatter) {
        if (instance == null) {
            throw new IllegalStateException("Using the builder after build() was called is not allowed!");
        }
        instance.setSqlValuesFormatter(formatter);
        return this;
    }
394926
public void setFormValue(Object value) {

        if (value instanceof Boolean) {
            Boolean boolValue = (Boolean)value;
            setChecked(boolValue.booleanValue());
        }
    }
384806
@Override
    public void setNumberFormat(NumberFormat newNumberFormat) {
        // Override this method to update local zero padding number formatter
        super.setNumberFormat(newNumberFormat);
        initLocalZeroPaddingNumberFormat();
        initializeTimeZoneFormat(true);

        if (numberFormatters != null) {
            numberFormatters = null;
        }
        if (overrideMap != null) {
            overrideMap = null;
        }
    }
197067
public static final BigDecimal printCurrency(Number value)
   {
      return (value == null || value.doubleValue() == 0 ? null : new BigDecimal(value.doubleValue() * 100));
   }
901473
private String getPercentFormatted(final Integer value)
	{
		final Integer val = checkQuietly(getName(), value);
		return NumberFormat.getPercentInstance().format((double)val / 100);
	}
736694
public DynamicReportBuilder setProperty(String name, String value) {
        this.report.setProperty(name, value);
        return this;
    }
510532
public ReturnValueBuilder withValue(final Metric pluginMetric) {
        if (thresholds.isMetricRequired(pluginMetric.getMetricName())) {
            Status newStatus = thresholds.evaluate(pluginMetric);
            if (newStatus.getSeverity() > status.getSeverity()) {
                status = newStatus;
            }

            IThreshold thr = thresholds.getThreshold(pluginMetric.getMetricName());

            formatResultMessage(pluginMetric);

            retVal.withPerformanceData(pluginMetric, thr);
        }
        return this;
    }
350281
public function setMarkerSize($value)
	{
	    if ($this->jsWriter instanceOf \Altamira\JsWriter\Ability\Lineable ) {
	        $this->jsWriter->setSeriesMarkerSize($this->getTitle(), $value);
	    }
	    return $this;
	}