Class MoveFlags.Adapter

java.lang.Object
com.google.gson.TypeAdapter<MoveFlags>
com.pixelmonmod.pixelmon.battles.attacks.MoveFlags.Adapter
Enclosing class:
MoveFlags

public static class MoveFlags.Adapter extends com.google.gson.TypeAdapter<MoveFlags>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    read(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
    write(com.google.gson.stream.JsonWriter out, MoveFlags value)
    Writes one JSON value (an array, object, string, number, boolean or null) for value.

    Methods inherited from class com.google.gson.TypeAdapter

    fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Adapter

      public Adapter()
  • Method Details

    • write

      public void write(com.google.gson.stream.JsonWriter out, MoveFlags value) throws IOException
      Writes one JSON value (an array, object, string, number, boolean or null) for value.
      Specified by:
      write in class com.google.gson.TypeAdapter<MoveFlags>
      Parameters:
      out -
      value - the Java object to write. May be null.
      Throws:
      IOException
    • read

      public MoveFlags read(com.google.gson.stream.JsonReader reader) throws IOException
      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 class com.google.gson.TypeAdapter<MoveFlags>
      Parameters:
      reader -
      Returns:
      the converted Java object. May be null.
      Throws:
      IOException