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