Class CollectionConverter

  • All Implemented Interfaces:
    IConverter

    public class CollectionConverter
    extends AbstractConverter
    Perform conversions from or to collection types.
    Since:
    4.0.6
    Version:
    $Revision: 21231 $ $Date: 2018-04-24 19:34:27 -0300 (Tue, 24 Apr 2018) $
    • Constructor Detail

      • CollectionConverter

        public CollectionConverter()
    • Method Detail

      • doConversion

        protected <T> T doConversion​(java.lang.Class<T> type,
                                     java.lang.Object value,
                                     java.util.Locale locale,
                                     java.lang.String pattern)
                              throws UnsupportedConversionTypeException
        Description copied from class: AbstractConverter
        Converts the specified input object into an output object of the specified type.
        Specified by:
        doConversion in class AbstractConverter
        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.
        Throws:
        UnsupportedConversionTypeException - if this converter does not supports converting to the specified type.