Class ArraysMapper.GenericMapper<T>

    • Field Detail

      • componentType

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

      • GenericMapper

        public GenericMapper​(JsonReader base,
                             java.lang.Class<T> type)
    • Method Detail

      • convert

        public T convert​(java.lang.Object current)
        Description copied from class: JsonReaderI
        Allow a mapper to converte a temprary structure to the final data format. example: convert an List to an int[]
        Overrides:
        convert in class ArraysMapper<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.