Class MoveFlags.Adapter
java.lang.Object
com.google.gson.TypeAdapter<MoveFlags>
com.pixelmonmod.pixelmon.battles.attacks.MoveFlags.Adapter
- Enclosing class:
- MoveFlags
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionread
(com.google.gson.stream.JsonReader reader) Reads one JSON value (an array, object, string, number, boolean or null) and converts it to a Java object.void
Writes one JSON value (an array, object, string, number, boolean or null) forvalue
.Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
Adapter
public Adapter()
-
-
Method Details
-
write
Writes one JSON value (an array, object, string, number, boolean or null) forvalue
.- Specified by:
write
in classcom.google.gson.TypeAdapter<MoveFlags>
- Parameters:
out
-value
- the Java object to write. May be null.- Throws:
IOException
-
read
Reads one JSON value (an array, object, string, number, boolean or null) and converts it to a Java object. Returns the converted object.- Specified by:
read
in classcom.google.gson.TypeAdapter<MoveFlags>
- Parameters:
reader
-- Returns:
- the converted Java object. May be null.
- Throws:
IOException
-