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