Interface LocaleConverter

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> T convert​(java.lang.Class<T> type, java.lang.Object value, java.lang.String pattern)
      Convert the specified locale-sensitive input object into an output object of the specified type.
    • Method Detail

      • convert

        <T> T convert​(java.lang.Class<T> type,
                      java.lang.Object value,
                      java.lang.String pattern)
        Convert the specified locale-sensitive input object into an output object of the specified type.
        Type Parameters:
        T - The desired target type of the conversion
        Parameters:
        type - Data type to which this value should be converted
        value - The input value to be converted
        pattern - The user-defined pattern is used for the input object formatting.
        Returns:
        The converted value
        Throws:
        ConversionException - if conversion cannot be performed successfully or if the target type is not supported