Class ListConverter
-
-
Constructor Summary
Constructors Constructor Description ListConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>convert(Object obj)Converts a value to a List of Strings.
-
-
-
Method Detail
-
convert
public List<String> convert(Object obj)
Converts a value to a List of Strings. Conversion is attempted only if parameter obj is already a String or a List. In case of String, a whitespace is assumed as elements separator- Specified by:
convertin interfacecom.fasterxml.jackson.databind.util.Converter<Object,List<String>>- Specified by:
convertin classcom.fasterxml.jackson.databind.util.StdConverter<Object,List<String>>- Parameters:
obj- Input object- Returns:
- A list of strings, empty if obj is null or does not have the expected type
-
-