Package org.apache.ofbiz.base.conversion
Class NumberConverters.AbstractNumberConverter<S,T>
- java.lang.Object
-
- org.apache.ofbiz.base.conversion.AbstractConverter<S,T>
-
- org.apache.ofbiz.base.conversion.AbstractLocalizedConverter<S,T>
-
- org.apache.ofbiz.base.conversion.NumberConverters.AbstractNumberConverter<S,T>
-
- All Implemented Interfaces:
Converter<S,T>
,ConverterLoader
,LocalizedConverter<S,T>
- Direct Known Subclasses:
NumberConverters.AbstractNumberToStringConverter
,NumberConverters.AbstractStringToNumberConverter
- Enclosing class:
- NumberConverters
public abstract static class NumberConverters.AbstractNumberConverter<S,T> extends AbstractLocalizedConverter<S,T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractNumberConverter(java.lang.Class<S> sourceClass, java.lang.Class<T> targetClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
convert(S 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, convert, getSourceClass, getTargetClass
-
Methods inherited from interface org.apache.ofbiz.base.conversion.LocalizedConverter
convert
-
-
-
-
Method Detail
-
convert
public T convert(S 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
-
-