Package com.beust.jcommander.converters
Class DefaultListConverter<T>
java.lang.Object
com.beust.jcommander.converters.DefaultListConverter<T>
- Type Parameters:
T
- the element type
- All Implemented Interfaces:
IStringConverter<List<T>>
A converter to obtain a list of elements.
-
Constructor Summary
ConstructorDescriptionDefaultListConverter
(IParameterSplitter splitter, IStringConverter<T> converter) Constructs a new converter. -
Method Summary
-
Constructor Details
-
DefaultListConverter
Constructs a new converter.- Parameters:
splitter
- to split value into list of argumentsconverter
- to convert list of arguments to target element type
-
-
Method Details
-
convert
- Specified by:
convert
in interfaceIStringConverter<T>
- Returns:
- an object of type T created from the parameter value.
-