Package com.jayway.jsonpath.spi.mapper
Interface MappingProvider
- All Known Implementing Classes:
GsonMappingProvider
,JacksonMappingProvider
,JsonSmartMappingProvider
public interface MappingProvider
Maps object between different Types
-
Method Summary
Modifier and TypeMethodDescription<T> T
map
(Object source, TypeRef<T> targetType, Configuration configuration) <T> T
map
(Object source, Class<T> targetType, Configuration configuration)
-
Method Details
-
map
- Type Parameters:
T
- the mapped result type- Parameters:
source
- object to maptargetType
- the type the source object should be mapped toconfiguration
- current configuration- Returns:
- return the mapped object
-
map
- Type Parameters:
T
- the mapped result type- Parameters:
source
- object to maptargetType
- the type the source object should be mapped toconfiguration
- current configuration- Returns:
- return the mapped object
-