Class ListConverter
- java.lang.Object
-
- com.fasterxml.jackson.databind.util.StdConverter<java.lang.Object,java.util.List<java.lang.String>>
-
- io.jans.as.model.common.converter.ListConverter
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.util.Converter<java.lang.Object,java.util.List<java.lang.String>>
public class ListConverter extends com.fasterxml.jackson.databind.util.StdConverter<java.lang.Object,java.util.List<java.lang.String>>
A class to facilitate two-step deserialization.
-
-
Constructor Summary
Constructors Constructor Description ListConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
convert(java.lang.Object obj)
Converts a value to a List of Strings.
-
-
-
Method Detail
-
convert
public java.util.List<java.lang.String> convert(java.lang.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:
convert
in interfacecom.fasterxml.jackson.databind.util.Converter<java.lang.Object,java.util.List<java.lang.String>>
- Specified by:
convert
in classcom.fasterxml.jackson.databind.util.StdConverter<java.lang.Object,java.util.List<java.lang.String>>
- Parameters:
obj
- Input object- Returns:
- A list of strings, null if obj is null or does not have the expected type
-
-