Class JsonSmartMappingProvider

    • Field Detail

      • DEFAULT

        private static net.minidev.json.writer.JsonReader DEFAULT
      • factory

        private final java.util.concurrent.Callable<net.minidev.json.writer.JsonReader> factory
    • Constructor Detail

      • JsonSmartMappingProvider

        public JsonSmartMappingProvider​(net.minidev.json.writer.JsonReader jsonReader)
      • JsonSmartMappingProvider

        public JsonSmartMappingProvider​(java.util.concurrent.Callable<net.minidev.json.writer.JsonReader> factory)
      • JsonSmartMappingProvider

        public JsonSmartMappingProvider()
    • Method Detail

      • map

        public <T> T map​(java.lang.Object source,
                         java.lang.Class<T> targetType,
                         Configuration configuration)
        Specified by:
        map in interface MappingProvider
        Type Parameters:
        T - the mapped result type
        Parameters:
        source - object to map
        targetType - the type the source object should be mapped to
        configuration - current configuration
        Returns:
        return the mapped object
      • map

        public <T> T map​(java.lang.Object source,
                         TypeRef<T> targetType,
                         Configuration configuration)
        Specified by:
        map in interface MappingProvider
        Type Parameters:
        T - the mapped result type
        Parameters:
        source - object to map
        targetType - the type the source object should be mapped to
        configuration - current configuration
        Returns:
        return the mapped object