Interface IConverter

    • 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)
      Converts the specified input object into an output object of the specified type.
      <T> T convert​(java.lang.Class<T> type, java.lang.Object value, java.util.Locale locale)
      Converts the specified input object into an output object of the specified type.
      <T> T convert​(java.lang.Class<T> type, java.lang.Object value, java.util.Locale locale, java.lang.String pattern)
      Converts the specified 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.util.Locale locale,
                      java.lang.String pattern)
        Converts the specified input object into an output object of the specified type.
        Type Parameters:
        T - generics support for the data type specified.
        Parameters:
        type - data type to which the value should be converted.
        value - the input value to be converted.
        locale - locale to be used during conversion, if necessary.
        pattern - converter specific conversion pattern, to be used during conversion, if necessary.
        Since:
        4.0.4
      • convert

        <T> T convert​(java.lang.Class<T> type,
                      java.lang.Object value,
                      java.util.Locale locale)
        Converts the specified input object into an output object of the specified type.
        Type Parameters:
        T - generics support for the data type specified.
        Parameters:
        type - data type to which the value should be converted.
        value - the input value to be converted.
        locale - locale to be used during conversion
        Since:
        4.0.4
      • convert

        <T> T convert​(java.lang.Class<T> type,
                      java.lang.Object value)
        Converts the specified input object into an output object of the specified type.
        Type Parameters:
        T - generics support for the data type specified.
        Parameters:
        type - data type to which the value should be converted.
        value - the input value to be converted.
        Since:
        4.0.4