Class TrimmedStringSetConverter
java.lang.Object
com.github.joschi.jadconfig.converters.StringSetConverter
com.github.joschi.jadconfig.converters.TrimmedStringSetConverter
Class for converting a comma-separated list to a
Set<String> of trimmed strings.- Author:
- jschalanda
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.github.joschi.jadconfig.converters.StringSetConverter
convertTo
-
Constructor Details
-
TrimmedStringSetConverter
public TrimmedStringSetConverter()
-
-
Method Details
-
convertFrom
Returns aSetofStrings representing the specifiedStringvalue. The value is being split on comma.- Specified by:
convertFromin interfaceConverter<Set<String>>- Overrides:
convertFromin classStringSetConverter- Parameters:
value- The configuration parameter'sStringvalue- Returns:
- A
SetofStrings representing the configuration parameter's value
-