Class JavaUtilCollectionsDeserializers.JavaUtilCollectionsConverter

java.lang.Object
com.fasterxml.jackson.databind.deser.impl.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.
  • Nested Class Summary

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

    Converter.None
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final JavaType
     
    private final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    JavaUtilCollectionsConverter(int kind, JavaType inputType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    _checkSingleton(int size)
     
    convert(Object value)
    Main conversion method.
    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).
    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).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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(Object value)
      Description copied from interface: Converter
      Main conversion method.
      Specified by:
      convert in interface Converter<Object,Object>
    • 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)