Class JavaUtilCollectionsDeserializers.JavaUtilCollectionsConverter

  • All Implemented Interfaces:
    Converter<java.lang.Object,​java.lang.Object>
    Enclosing class:
    JavaUtilCollectionsDeserializers

    private static class JavaUtilCollectionsDeserializers.JavaUtilCollectionsConverter
    extends java.lang.Object
    implements Converter<java.lang.Object,​java.lang.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

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void _checkSingleton​(int size)  
      java.lang.Object convert​(java.lang.Object value)
      Main conversion method.
      JavaType getInputType​(TypeFactory typeFactory)
      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).
      JavaType getOutputType​(TypeFactory typeFactory)
      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 Detail

      • _inputType

        private final JavaType _inputType
      • _kind

        private final int _kind
    • Constructor Detail

      • JavaUtilCollectionsConverter

        JavaUtilCollectionsConverter​(int kind,
                                     JavaType inputType)
    • Method Detail

      • convert

        public java.lang.Object convert​(java.lang.Object value)
        Description copied from interface: Converter
        Main conversion method.
        Specified by:
        convert in interface Converter<java.lang.Object,​java.lang.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<java.lang.Object,​java.lang.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<java.lang.Object,​java.lang.Object>
      • _checkSingleton

        private void _checkSingleton​(int size)