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 -
Method Summary
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
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:
writein classcom.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:
readin classcom.google.gson.TypeAdapter<eu.okaeri.configs.OkaeriConfig>
-