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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
map(java.lang.Object source, TypeRef<T> targetType, Configuration configuration)
<T> T
map(java.lang.Object source, java.lang.Class<T> targetType, Configuration configuration)
-
-
-
Method Detail
-
map
<T> T map(java.lang.Object source, java.lang.Class<T> targetType, Configuration configuration)
- 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
<T> T map(java.lang.Object source, TypeRef<T> targetType, Configuration configuration)
- 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
-
-