Package com.massivecraft.factions.util
Class MyLocationTypeAdapter
- java.lang.Object
-
- com.massivecraft.factions.util.adapters.MyLocationTypeAdapter
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<LazyLocation>
,com.google.gson.JsonSerializer<LazyLocation>
public class MyLocationTypeAdapter extends java.lang.Object implements com.google.gson.JsonDeserializer<LazyLocation>, com.google.gson.JsonSerializer<LazyLocation>
-
-
Constructor Summary
Constructors Constructor Description MyLocationTypeAdapter()
-
Method Summary
Modifier and Type Method Description LazyLocation
deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context)
com.google.gson.JsonElement
serialize(LazyLocation src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
-
-
Method Detail
-
deserialize
public LazyLocation 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<LazyLocation>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(LazyLocation src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
- Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<LazyLocation>
-
-