public class GsonMappingProvider extends java.lang.Object implements MappingProvider
| Constructor and Description |
|---|
GsonMappingProvider() |
GsonMappingProvider(java.util.concurrent.Callable<com.google.gson.Gson> factory) |
GsonMappingProvider(com.google.gson.Gson gson) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
map(java.lang.Object source,
java.lang.Class<T> targetType,
Configuration configuration) |
<T> T |
map(java.lang.Object source,
TypeRef<T> targetType,
Configuration configuration) |
public GsonMappingProvider(com.google.gson.Gson gson)
public GsonMappingProvider(java.util.concurrent.Callable<com.google.gson.Gson> factory)
public GsonMappingProvider()
public <T> T map(java.lang.Object source,
java.lang.Class<T> targetType,
Configuration configuration)
map in interface MappingProviderT - the mapped result typesource - object to maptargetType - the type the source object should be mapped toconfiguration - current configurationpublic <T> T map(java.lang.Object source,
TypeRef<T> targetType,
Configuration configuration)
map in interface MappingProviderT - the mapped result typesource - object to maptargetType - the type the source object should be mapped toconfiguration - current configuration