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