public class GenderPropertiesTypeAdapter extends java.lang.Object implements com.google.gson.JsonSerializer<GenderProperties>, com.google.gson.JsonDeserializer<GenderProperties>
Gson
type TypeAdapter
for the GenderProperties
class such that it can be converted
to and from Json text when loading to/from Species
data.Constructor and Description |
---|
GenderPropertiesTypeAdapter() |
Modifier and Type | Method and Description |
---|---|
GenderProperties |
deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
com.google.gson.JsonElement |
serialize(GenderProperties src,
java.lang.reflect.Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
public GenderProperties deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<GenderProperties>
com.google.gson.JsonParseException
public com.google.gson.JsonElement serialize(GenderProperties src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
serialize
in interface com.google.gson.JsonSerializer<GenderProperties>