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