Package net.handle.hdllib
Class GsonUtility.HandleValueGsonTypeAdapter
- java.lang.Object
-
- net.handle.hdllib.GsonUtility.HandleValueGsonTypeAdapter
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<HandleValue>
,com.google.gson.JsonSerializer<HandleValue>
- Enclosing class:
- GsonUtility
public static class GsonUtility.HandleValueGsonTypeAdapter extends java.lang.Object implements com.google.gson.JsonSerializer<HandleValue>, com.google.gson.JsonDeserializer<HandleValue>
-
-
Constructor Summary
Constructors Constructor Description HandleValueGsonTypeAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HandleValue
deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext context)
com.google.gson.JsonElement
serialize(HandleValue value, java.lang.reflect.Type type, com.google.gson.JsonSerializationContext context)
-
-
-
Method Detail
-
serialize
public com.google.gson.JsonElement serialize(HandleValue value, java.lang.reflect.Type type, com.google.gson.JsonSerializationContext context)
- Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<HandleValue>
-
deserialize
public HandleValue deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<HandleValue>
- Throws:
com.google.gson.JsonParseException
-
-