/** * Set the "NaN" attribute. * NaN specifies the string used to represent the NaN value; * the default value is the string NaN. * * @param v String to use as the "NaN" attribute. */ public void setNaN(String v) { m_dfs.setNaN(v); }
public void handle(ExtendedDecimalFormatParser parser, String value) throws InvalidParameterValueException { parser.symbols.setNaN(value); } });
/** * Set the "NaN" attribute. * NaN specifies the string used to represent the NaN value; * the default value is the string NaN. * * @param v String to use as the "NaN" attribute. */ public void setNaN(String v) { m_dfs.setNaN(v); }
/** * Constructor DecimalFormatProperties * */ public DecimalFormatProperties(int docOrderNumber) { m_dfs = new java.text.DecimalFormatSymbols(); // Set default values, they can be overiden if necessary. m_dfs.setInfinity(Constants.ATTRVAL_INFINITY); m_dfs.setNaN(Constants.ATTRVAL_NAN); m_docOrderNumber = docOrderNumber; }
/** * Constructor DecimalFormatProperties * */ public DecimalFormatProperties(int docOrderNumber) { m_dfs = new java.text.DecimalFormatSymbols(); // Set default values, they can be overiden if necessary. m_dfs.setInfinity(Constants.ATTRVAL_INFINITY); m_dfs.setNaN(Constants.ATTRVAL_NAN); m_docOrderNumber = docOrderNumber; }
PrometheusController(List<JavaInformations> javaInformations, Collector collector, PrintWriter out) throws IOException { super(); assert javaInformations != null && !javaInformations.isEmpty(); assert collector != null; assert out != null; // it doesn't make much sense to use a JavaMelody collector server with Prometheus // (which is effectively it's own collector server) if (javaInformations.size() > 1) { throw new IOException( "JavaMelody collector server not supported - configure Prometheus to scrape nodes."); } this.javaInformations = javaInformations.get(0); this.collector = collector; this.out = out; decimalFormat = new DecimalFormat(); final DecimalFormatSymbols decimalFormatSymbols = DecimalFormatSymbols .getInstance(Locale.US); // setNaN for #806: on Java 8 and before, decimalFormat prints \uFFFD ('<?>') instead of NaN decimalFormatSymbols.setNaN("NaN"); decimalFormat.setDecimalFormatSymbols(decimalFormatSymbols); decimalFormat.setGroupingUsed(false); decimalFormat.setMinimumIntegerDigits(1); decimalFormat.setMaximumFractionDigits(15); }
dfs.setNaN(Constants.ATTRVAL_NAN);
dfs.setNaN(Constants.ATTRVAL_NAN);
public static NumberFormat format(PrecisionModel pm) { DecimalFormatSymbols symbols = new DecimalFormatSymbols(); symbols.setNaN("NaN"); DecimalFormat f = new DecimalFormat(); f.setDecimalFormatSymbols(symbols); if (pm == null) { f.setMaximumFractionDigits(0); return f; } f.setMinimumFractionDigits(0); f.setMaximumFractionDigits(pm.getMaximumSignificantDigits()); return f; }
/** * Set the "NaN" attribute. * NaN specifies the string used to represent the NaN value; * the default value is the string NaN. * * @param v String to use as the "NaN" attribute. */ public void setNaN(String v) { m_dfs.setNaN(v); }
/** * Set the "NaN" attribute. * NaN specifies the string used to represent the NaN value; * the default value is the string NaN. * * @param v String to use as the "NaN" attribute. */ public void setNaN(String v) { m_dfs.setNaN(v); }
public void handle(ExtendedDecimalFormatParser parser, String value) throws InvalidParameterValueException { parser.symbols.setNaN(value); } });
/** * Sets the string used to represent "not a number". Almost always left unchanged. * @param naN the nam sysmbol */ public void setNaN(String naN) { formatSymbols.setNaN(naN); } /**
public void handle(ExtendedDecimalFormatParser parser, String value) throws InvalidParameterValueException { parser.symbols.setNaN(value); } });
/** * Set the "NaN" attribute. * NaN specifies the string used to represent the NaN value; * the default value is the string NaN. * * @param v String to use as the "NaN" attribute. */ public void setNaN(String v) { m_dfs.setNaN(v); }
/** * Constructor DecimalFormatProperties * */ public DecimalFormatProperties(int docOrderNumber) { m_dfs = new java.text.DecimalFormatSymbols(); // Set default values, they can be overiden if necessary. m_dfs.setInfinity(Constants.ATTRVAL_INFINITY); m_dfs.setNaN(Constants.ATTRVAL_NAN); m_docOrderNumber = docOrderNumber; }
/** * Constructor DecimalFormatProperties * */ public DecimalFormatProperties(int docOrderNumber) { m_dfs = new java.text.DecimalFormatSymbols(); // Set default values, they can be overiden if necessary. m_dfs.setInfinity(Constants.ATTRVAL_INFINITY); m_dfs.setNaN(Constants.ATTRVAL_NAN); m_docOrderNumber = docOrderNumber; }
/** * Constructor DecimalFormatProperties * */ public DecimalFormatProperties(int docOrderNumber) { m_dfs = new java.text.DecimalFormatSymbols(); // Set default values, they can be overiden if necessary. m_dfs.setInfinity(Constants.ATTRVAL_INFINITY); m_dfs.setNaN(Constants.ATTRVAL_NAN); m_docOrderNumber = docOrderNumber; }
/** * Constructor DecimalFormatProperties * */ public DecimalFormatProperties(int docOrderNumber) { m_dfs = new java.text.DecimalFormatSymbols(); // Set default values, they can be overiden if necessary. m_dfs.setInfinity(Constants.ATTRVAL_INFINITY); m_dfs.setNaN(Constants.ATTRVAL_NAN); m_docOrderNumber = docOrderNumber; }
/** * Constructor DecimalFormatProperties * */ public DecimalFormatProperties(int docOrderNumber) { m_dfs = new java.text.DecimalFormatSymbols(); // Set default values, they can be overiden if necessary. m_dfs.setInfinity(Constants.ATTRVAL_INFINITY); m_dfs.setNaN(Constants.ATTRVAL_NAN); m_docOrderNumber = docOrderNumber; }