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