Interface LocalizedConverter<S,​T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T convert​(java.lang.Class<? extends T> targetClass, S obj, java.util.Locale locale, java.util.TimeZone timeZone)
      Converts obj to T.
      T convert​(java.lang.Class<? extends T> targetClass, S obj, java.util.Locale locale, java.util.TimeZone timeZone, java.lang.String formatString)
      Converts obj to T.
      T convert​(S obj, java.util.Locale locale, java.util.TimeZone timeZone)
      Converts obj to T.
      T convert​(S obj, java.util.Locale locale, java.util.TimeZone timeZone, java.lang.String formatString)
      Converts obj to T.
    • Method Detail

      • convert

        T convert​(S obj,
                  java.util.Locale locale,
                  java.util.TimeZone timeZone)
           throws ConversionException
        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
        Returns:
        The converted Object
        Throws:
        ConversionException
      • convert

        T convert​(java.lang.Class<? extends T> targetClass,
                  S obj,
                  java.util.Locale locale,
                  java.util.TimeZone timeZone)
           throws ConversionException
        Converts obj to T.
        Parameters:
        targetClass - The Class to convert to
        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
        Returns:
        The converted Object
        Throws:
        ConversionException
      • convert

        T convert​(S obj,
                  java.util.Locale locale,
                  java.util.TimeZone timeZone,
                  java.lang.String formatString)
           throws ConversionException
        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
      • convert

        T convert​(java.lang.Class<? extends T> targetClass,
                  S obj,
                  java.util.Locale locale,
                  java.util.TimeZone timeZone,
                  java.lang.String formatString)
           throws ConversionException
        Converts obj to T.
        Parameters:
        targetClass - The Class to convert to
        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