Class RoundedDoubleConverter
- java.lang.Object
-
- org.stagemonitor.configuration.converter.AbstractValueConverter<java.lang.Double>
-
- co.elastic.apm.agent.configuration.converter.RoundedDoubleConverter
-
- All Implemented Interfaces:
org.stagemonitor.configuration.converter.ValueConverter<java.lang.Double>
public class RoundedDoubleConverter extends org.stagemonitor.configuration.converter.AbstractValueConverter<java.lang.Double>
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_PRECISION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Doubleconvert(java.lang.String s)doubleround(double value)java.lang.StringtoString(java.lang.Double value)static RoundedDoubleConverterwithDefaultPrecision()
-
-
-
Field Detail
-
DEFAULT_PRECISION
public static final int DEFAULT_PRECISION
- See Also:
- Constant Field Values
-
-
Method Detail
-
withDefaultPrecision
public static RoundedDoubleConverter withDefaultPrecision()
-
convert
public java.lang.Double convert(java.lang.String s) throws java.lang.IllegalArgumentException- Throws:
java.lang.IllegalArgumentException
-
toString
public java.lang.String toString(java.lang.Double value)
-
round
public double round(double value)
-
-