public class DoubleConverter extends AbstractDecimalConverter<Double>
Modifier and Type | Field and Description |
---|---|
static IConverter<Double> |
INSTANCE
The singleton instance for a double converter
|
Constructor and Description |
---|
DoubleConverter() |
Modifier and Type | Method and Description |
---|---|
Double |
convertToObject(String value,
Locale locale)
Converts the given
String value |
protected Class<Double> |
getTargetType() |
newNumberFormat
convertToString, getNumberFormat, parse
newConversionException, parse
public static final IConverter<Double> INSTANCE
public Double convertToObject(String value, Locale locale)
IConverter
String
valuevalue
- The string value to convertlocale
- The locale used to convert the valueIConverter.convertToObject(String, java.util.Locale)
protected Class<Double> getTargetType()
getTargetType
in class AbstractConverter<Double>
AbstractConverter.getTargetType()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.