Package kong.unirest.gson
Class GsonObjectMapper
- java.lang.Object
-
- kong.unirest.gson.GsonObjectMapper
-
- All Implemented Interfaces:
ObjectMapper
public class GsonObjectMapper extends Object implements ObjectMapper
-
-
Constructor Summary
Constructors Constructor Description GsonObjectMapper()GsonObjectMapper(com.google.gson.Gson gson)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TreadValue(String value, Class<T> valueType)<T> TreadValue(String value, GenericType<T> genericType)StringwriteValue(Object value)
-
-
-
Field Detail
-
ISO_8601
public static final String ISO_8601
- See Also:
- Constant Field Values
-
-
Method Detail
-
readValue
public <T> T readValue(String value, Class<T> valueType)
- Specified by:
readValuein interfaceObjectMapper
-
readValue
public <T> T readValue(String value, GenericType<T> genericType)
- Specified by:
readValuein interfaceObjectMapper
-
writeValue
public String writeValue(Object value)
- Specified by:
writeValuein interfaceObjectMapper
-
-