Class InterfaceAdapter<T>
- java.lang.Object
-
- cn.jpush.api.push.model.notification.InterfaceAdapter<T>
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<T>,com.google.gson.JsonSerializer
public class InterfaceAdapter<T> extends java.lang.Object implements com.google.gson.JsonSerializer, com.google.gson.JsonDeserializer<T>Created by Ken on 2016/10/25.
-
-
Constructor Summary
Constructors Constructor Description InterfaceAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tdeserialize(com.google.gson.JsonElement jsonElement, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext)com.google.gson.JsonElementserialize(java.lang.Object object, java.lang.reflect.Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
-
-
-
Method Detail
-
deserialize
public T deserialize(com.google.gson.JsonElement jsonElement, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) throws com.google.gson.JsonParseException
- Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<T>- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(java.lang.Object object, java.lang.reflect.Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)- Specified by:
serializein interfacecom.google.gson.JsonSerializer<T>
-
-