Class ConfigAdapter

java.lang.Object
com.google.gson.TypeAdapter<eu.okaeri.configs.OkaeriConfig>
xyz.srnyx.annoyingapi.stats.gson.adapter.ConfigAdapter

public class ConfigAdapter extends com.google.gson.TypeAdapter<eu.okaeri.configs.OkaeriConfig>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable eu.okaeri.configs.OkaeriConfig
    read(@NotNull com.google.gson.stream.JsonReader in)
     
    void
    write(@NotNull com.google.gson.stream.JsonWriter out, @Nullable eu.okaeri.configs.OkaeriConfig config)
     

    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

    • ConfigAdapter

      public ConfigAdapter()
  • Method Details

    • write

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

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