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>
  • Method Details

    • convert

      public T convert(S obj, Locale locale, TimeZone timeZone, String formatString) throws ConversionException
      Description copied from interface: LocalizedConverter
      Converts obj to T.
      Parameters:
      obj - The source Object to convert
      locale - The locale used for conversion - must not be null
      timeZone - The time zone used for conversion - must not be null
      formatString - Optional formatting string
      Returns:
      The converted Object
      Throws:
      ConversionException