Package org.apache.ofbiz.base.conversion
Class DateTimeConverters.LongToCalendar
- java.lang.Object
-
- org.apache.ofbiz.base.conversion.AbstractConverter<S,T>
-
- org.apache.ofbiz.base.conversion.AbstractLocalizedConverter<java.lang.Long,com.ibm.icu.util.Calendar>
-
- org.apache.ofbiz.base.conversion.DateTimeConverters.LongToCalendar
-
- All Implemented Interfaces:
Converter<java.lang.Long,com.ibm.icu.util.Calendar>
,ConverterLoader
,LocalizedConverter<java.lang.Long,com.ibm.icu.util.Calendar>
- Enclosing class:
- DateTimeConverters
public static class DateTimeConverters.LongToCalendar extends AbstractLocalizedConverter<java.lang.Long,com.ibm.icu.util.Calendar>
-
-
Constructor Summary
Constructors Constructor Description LongToCalendar()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ibm.icu.util.Calendar
convert(java.lang.Long obj)
Convertsobj
toT
.com.ibm.icu.util.Calendar
convert(java.lang.Long obj, java.util.Locale locale, java.util.TimeZone timeZone)
Convertsobj
toT
.com.ibm.icu.util.Calendar
convert(java.lang.Long obj, java.util.Locale locale, java.util.TimeZone timeZone, java.lang.String formatString)
Convertsobj
toT
.-
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 com.ibm.icu.util.Calendar convert(java.lang.Long obj) throws ConversionException
Description copied from interface:Converter
Convertsobj
toT
.- Parameters:
obj
- The sourceObject
to convert- Returns:
- The converted
Object
- Throws:
ConversionException
-
convert
public com.ibm.icu.util.Calendar convert(java.lang.Long obj, java.util.Locale locale, java.util.TimeZone timeZone) throws ConversionException
Description copied from interface:LocalizedConverter
Convertsobj
toT
.- Parameters:
obj
- The sourceObject
to convertlocale
- The locale used for conversion - must not benull
timeZone
- The time zone used for conversion - must not benull
- Returns:
- The converted
Object
- Throws:
ConversionException
-
convert
public com.ibm.icu.util.Calendar convert(java.lang.Long obj, java.util.Locale locale, java.util.TimeZone timeZone, java.lang.String formatString) throws ConversionException
Description copied from interface:LocalizedConverter
Convertsobj
toT
.- Parameters:
obj
- The sourceObject
to convertlocale
- The locale used for conversion - must not benull
timeZone
- The time zone used for conversion - must not benull
formatString
- Optional formatting string- Returns:
- The converted
Object
- Throws:
ConversionException
-
-