Class JavaUtilCollectionsDeserializers.JavaUtilCollectionsConverter

java.lang.Object
tools.jackson.databind.deser.jdk.JavaUtilCollectionsDeserializers.JavaUtilCollectionsConverter
All Implemented Interfaces:
Converter<Object,Object>
Enclosing class:
JavaUtilCollectionsDeserializers

private static class JavaUtilCollectionsDeserializers.JavaUtilCollectionsConverter extends Object implements Converter<Object,Object>
Implementation used for converting from various generic container types (Set, List, Map) into more specific implementations accessible via java.util.Collections.
  • Field Details

    • _inputType

      private final JavaType _inputType
    • _kind

      private final int _kind
  • Constructor Details

    • JavaUtilCollectionsConverter

      JavaUtilCollectionsConverter(int kind, JavaType inputType)
  • Method Details

    • convert

      public Object convert(DeserializationContext ctxt, Object value)
      Description copied from interface: Converter
      Conversion method to use on deserialization side.
      Specified by:
      convert in interface Converter<Object,Object>
    • convert

      public Object convert(SerializationContext ctxt, Object value)
      Description copied from interface: Converter
      Conversion method to use on serialization side.
      Specified by:
      convert in interface Converter<Object,Object>
    • _convert

      protected Object _convert(Object value)
    • getInputType

      public JavaType getInputType(TypeFactory typeFactory)
      Description copied from interface: Converter
      Method that can be used to find out actual input (source) type; this usually can be determined from type parameters, but may need to be implemented differently from programmatically defined converters (which cannot change static type parameter bindings).
      Specified by:
      getInputType in interface Converter<Object,Object>
    • getOutputType

      public JavaType getOutputType(TypeFactory typeFactory)
      Description copied from interface: Converter
      Method that can be used to find out actual output (target) type; this usually can be determined from type parameters, but may need to be implemented differently from programmatically defined converters (which cannot change static type parameter bindings).
      Specified by:
      getOutputType in interface Converter<Object,Object>
    • _checkSingleton

      private void _checkSingleton(int size)