Class CollectionMapper.MapType<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) BeansAccess<?> ba  
      (package private) java.lang.Class<?> instance  
      (package private) java.lang.Class<?> keyClass  
      (package private) java.lang.reflect.Type keyType  
      (package private) java.lang.Class<?> rawClass  
      (package private) JsonReaderI<?> subMapper  
      (package private) java.lang.reflect.ParameterizedType type  
      (package private) java.lang.Class<?> valueClass  
      (package private) java.lang.reflect.Type valueType  
    • Constructor Summary

      Constructors 
      Constructor Description
      MapType​(JsonReader base, java.lang.reflect.ParameterizedType type)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object createObject()
      use to instantiate a new object that will be used as an object
      java.lang.reflect.Type getType​(java.lang.String key)  
      java.lang.Object getValue​(java.lang.Object current, java.lang.String key)
      -------------
      void setValue​(java.lang.Object current, java.lang.String key, java.lang.Object value)
      called when json-smart done parsing a value
      JsonReaderI<?> startArray​(java.lang.String key)
      called when json-smart parser start an array.
      JsonReaderI<?> startObject​(java.lang.String key)
      called when json-smart parser meet an object key
      • Methods inherited from class java.lang.Object

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

      • type

        final java.lang.reflect.ParameterizedType type
      • rawClass

        final java.lang.Class<?> rawClass
      • instance

        final java.lang.Class<?> instance
      • keyType

        final java.lang.reflect.Type keyType
      • valueType

        final java.lang.reflect.Type valueType
      • keyClass

        final java.lang.Class<?> keyClass
      • valueClass

        final java.lang.Class<?> valueClass
    • Constructor Detail

      • MapType

        public MapType​(JsonReader base,
                       java.lang.reflect.ParameterizedType type)
    • Method Detail

      • createObject

        public java.lang.Object createObject()
        Description copied from class: JsonReaderI
        use to instantiate a new object that will be used as an object
        Overrides:
        createObject in class JsonReaderI<T>
      • startArray

        public JsonReaderI<?> startArray​(java.lang.String key)
        Description copied from class: JsonReaderI
        called when json-smart parser start an array.
        Overrides:
        startArray in class JsonReaderI<T>
        Parameters:
        key - the destination key name, or null.
      • setValue

        public void setValue​(java.lang.Object current,
                             java.lang.String key,
                             java.lang.Object value)
        Description copied from class: JsonReaderI
        called when json-smart done parsing a value
        Overrides:
        setValue in class JsonReaderI<T>
      • getValue

        public java.lang.Object getValue​(java.lang.Object current,
                                         java.lang.String key)
        Description copied from class: JsonReaderI
        -------------
        Overrides:
        getValue in class JsonReaderI<T>
      • getType

        public java.lang.reflect.Type getType​(java.lang.String key)
        Overrides:
        getType in class JsonReaderI<T>