Package com.beust.jcommander
Interface IStringConverterInstanceFactory
public interface IStringConverterInstanceFactory
A factory to create
IStringConverter instances.
This interface lets you specify your converters in one place instead of having them repeated all over your argument classes.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetConverterInstance(Parameter parameter, Class<?> forType, String optionName) Obtain a converter instance for parsingparameteras typeforType
-
Method Details
-
getConverterInstance
Obtain a converter instance for parsingparameteras typeforType- Parameters:
parameter- the parameter to parseforType- the type classoptionName- the name of the option used on the command line- Returns:
- a converter instance
-