Class 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.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.util.Converter

        com.fasterxml.jackson.databind.util.Converter.None
    • 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.
      • Methods inherited from class com.fasterxml.jackson.databind.util.StdConverter

        _findConverterType, getInputType, getOutputType
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ListConverter

        public ListConverter()
    • 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 interface com.fasterxml.jackson.databind.util.Converter<java.lang.Object,​java.util.List<java.lang.String>>
        Specified by:
        convert in class com.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