Package com.jayway.jsonpath.spi.mapper
Class GsonMappingProvider
- java.lang.Object
-
- com.jayway.jsonpath.spi.mapper.GsonMappingProvider
-
- All Implemented Interfaces:
MappingProvider
public class GsonMappingProvider extends java.lang.Object implements MappingProvider
-
-
Constructor Summary
Constructors Constructor Description GsonMappingProvider()GsonMappingProvider(com.google.gson.Gson gson)GsonMappingProvider(java.util.concurrent.Callable<com.google.gson.Gson> factory)
-
Method Summary
All Methods Instance Methods Concrete 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
public <T> T map(java.lang.Object source, java.lang.Class<T> targetType, Configuration configuration)- Specified by:
mapin interfaceMappingProvider- 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
public <T> T map(java.lang.Object source, TypeRef<T> targetType, Configuration configuration)- Specified by:
mapin interfaceMappingProvider- 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
-
-