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