Class DefaultListConverter<T>

  • Type Parameters:
    T - the element type
    All Implemented Interfaces:

    public class DefaultListConverter<T>
    extends java.lang.Object
    implements IStringConverter<java.util.List<T>>
    A converter to obtain a list of elements.
    • Constructor Detail

      • DefaultListConverter

        public DefaultListConverter​(IParameterSplitter splitter,
                                    IStringConverter<T> converter)
        Constructs a new converter.
        splitter - to split value into list of arguments
        converter - to convert list of arguments to target element type
    • Method Detail

      • convert

        public java.util.List<T> convert​(java.lang.String value)
        Specified by:
        convert in interface IStringConverter<T>
        an object of type T created from the parameter value.