Class StatableAdapter

java.lang.Object
com.google.gson.TypeAdapter<Statable>
xyz.srnyx.annoyingapi.stats.gson.adapter.StatableAdapter

public class StatableAdapter extends com.google.gson.TypeAdapter<Statable>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable Statable
    read(@NotNull com.google.gson.stream.JsonReader in)
     
    void
    write(@NotNull com.google.gson.stream.JsonWriter out, @Nullable Statable 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

    • StatableAdapter

      public StatableAdapter()
  • Method Details

    • write

      public void write(@NotNull @NotNull com.google.gson.stream.JsonWriter out, @Nullable @Nullable Statable value) throws IOException
      Specified by:
      write in class com.google.gson.TypeAdapter<Statable>
      Throws:
      IOException
    • read

      @Nullable public @Nullable Statable read(@NotNull @NotNull com.google.gson.stream.JsonReader in)
      Specified by:
      read in class com.google.gson.TypeAdapter<Statable>