Package org.apache.ofbiz.base.conversion
Class NumberConverters.GenericNumberToDouble<N extends java.lang.Number>
- java.lang.Object
-
- org.apache.ofbiz.base.conversion.AbstractConverter<N,java.lang.Double>
-
- org.apache.ofbiz.base.conversion.NumberConverters.GenericNumberToDouble<N>
-
- All Implemented Interfaces:
Converter<N,java.lang.Double>
,ConverterLoader
- Enclosing class:
- NumberConverters
public static class NumberConverters.GenericNumberToDouble<N extends java.lang.Number> extends AbstractConverter<N,java.lang.Double>
-
-
Constructor Summary
Constructors Constructor Description GenericNumberToDouble(java.lang.Class<N> sourceClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Double
convert(N obj)
Convertsobj
toT
.-
Methods inherited from class org.apache.ofbiz.base.conversion.AbstractConverter
canConvert, convert, getSourceClass, getTargetClass, loadConverters
-
-
-
-
Constructor Detail
-
GenericNumberToDouble
public GenericNumberToDouble(java.lang.Class<N> sourceClass)
-
-
Method Detail
-
convert
public java.lang.Double convert(N obj) throws ConversionException
Description copied from interface:Converter
Convertsobj
toT
.- Parameters:
obj
- The sourceObject
to convert- Returns:
- The converted
Object
- Throws:
ConversionException
-
-