public class DateTimeTypeAdapter extends Object implements com.google.gson.JsonSerializer<org.joda.time.DateTime>, com.google.gson.JsonDeserializer<org.joda.time.DateTime>
| Constructor and Description |
|---|
DateTimeTypeAdapter() |
| Modifier and Type | Method and Description |
|---|---|
org.joda.time.DateTime |
deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
com.google.gson.JsonElement |
serialize(org.joda.time.DateTime src,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
public com.google.gson.JsonElement serialize(org.joda.time.DateTime src,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context)
serialize in interface com.google.gson.JsonSerializer<org.joda.time.DateTime>public org.joda.time.DateTime deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context)
throws com.google.gson.JsonParseException
deserialize in interface com.google.gson.JsonDeserializer<org.joda.time.DateTime>com.google.gson.JsonParseExceptionCopyright © 2015. All Rights Reserved.