Class Range.TypeAdapter
java.lang.Object
com.pixelmonmod.pixelmon.api.util.Range.TypeAdapter
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Range>
,com.google.gson.JsonSerializer<Range>
- Enclosing class:
- Range
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TypeAdapter
public TypeAdapter()
-
-
Method Details
-
deserialize
public Range deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<Range>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(Range src, Type typeOfSrc, com.google.gson.JsonSerializationContext context) - Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<Range>
-