Interface MappingProvider

All Known Implementing Classes:
GsonMappingProvider, JacksonMappingProvider, JsonSmartMappingProvider

public interface MappingProvider
Maps object between different Types
  • Method Details

    • map

      <T> T map(Object source, Class<T> targetType, Configuration configuration)
      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

      <T> T map(Object source, TypeRef<T> targetType, Configuration configuration)
      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