Package com.jayway.jsonpath.spi.mapper
Interface MappingProvider
-
- All Known Implementing Classes:
GsonMappingProvider,JacksonMappingProvider,JakartaMappingProvider,JsonOrgMappingProvider,JsonSmartMappingProvider,TapestryMappingProvider
public interface MappingProviderMaps object between different Types
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Tmap(java.lang.Object source, TypeRef<T> targetType, Configuration configuration)<T> Tmap(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
-
-