Class MoveFlags.Adapter
java.lang.Object
com.google.gson.TypeAdapter<MoveFlags>
com.pixelmonmod.pixelmon.battles.attacks.MoveFlags.Adapter
- Enclosing class:
- MoveFlags
-
Constructor Summary
Constructors -
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.voidWrites 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:
writein 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:
readin classcom.google.gson.TypeAdapter<MoveFlags>- Parameters:
reader-- Returns:
- the converted Java object. May be null.
- Throws:
IOException
-