Package org.apache.ofbiz.base.conversion
Class NumberConverters.StringToDouble
- java.lang.Object
-
- org.apache.ofbiz.base.conversion.AbstractConverter<S,T>
-
- org.apache.ofbiz.base.conversion.AbstractLocalizedConverter<S,T>
-
- org.apache.ofbiz.base.conversion.NumberConverters.AbstractNumberConverter<java.lang.String,N>
-
- org.apache.ofbiz.base.conversion.NumberConverters.AbstractStringToNumberConverter<java.lang.Double>
-
- org.apache.ofbiz.base.conversion.NumberConverters.StringToDouble
-
- All Implemented Interfaces:
Converter<java.lang.String,java.lang.Double>
,ConverterLoader
,LocalizedConverter<java.lang.String,java.lang.Double>
- Enclosing class:
- NumberConverters
public static class NumberConverters.StringToDouble extends NumberConverters.AbstractStringToNumberConverter<java.lang.Double>
-
-
Constructor Summary
Constructors Constructor Description StringToDouble()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Double
convert(java.lang.Number number)
java.lang.Double
convert(java.lang.String obj)
Convertsobj
toT
.-
Methods inherited from class org.apache.ofbiz.base.conversion.NumberConverters.AbstractStringToNumberConverter
convert
-
Methods inherited from class org.apache.ofbiz.base.conversion.NumberConverters.AbstractNumberConverter
convert
-
Methods inherited from class org.apache.ofbiz.base.conversion.AbstractLocalizedConverter
convert, convert
-
Methods inherited from class org.apache.ofbiz.base.conversion.AbstractConverter
canConvert, convert, getSourceClass, getTargetClass, loadConverters
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.ofbiz.base.conversion.Converter
canConvert, convert, getSourceClass, getTargetClass
-
-
-
-
Method Detail
-
convert
public java.lang.Double convert(java.lang.String obj) throws ConversionException
Description copied from interface:Converter
Convertsobj
toT
.- Parameters:
obj
- The sourceObject
to convert- Returns:
- The converted
Object
- Throws:
ConversionException
-
convert
protected java.lang.Double convert(java.lang.Number number) throws ConversionException
- Specified by:
convert
in classNumberConverters.AbstractStringToNumberConverter<java.lang.Double>
- Throws:
ConversionException
-
-