public class DateTimeAdapter extends Object implements com.google.gson.InstanceCreator<org.joda.time.DateTime>, com.google.gson.JsonSerializer<org.joda.time.DateTime>, com.google.gson.JsonDeserializer<org.joda.time.DateTime>
Constructor and Description |
---|
DateTimeAdapter() |
Modifier and Type | Method and Description |
---|---|
org.joda.time.DateTime |
createInstance(Type type) |
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 org.joda.time.DateTime deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
deserialize
in interface com.google.gson.JsonDeserializer<org.joda.time.DateTime>
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 createInstance(Type type)
createInstance
in interface com.google.gson.InstanceCreator<org.joda.time.DateTime>
Copyright © 2018. All rights reserved.