Class DurationAdapter
java.lang.Object
com.google.gson.TypeAdapter<Duration>
xyz.srnyx.annoyingapi.stats.gson.adapter.DurationAdapter
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
DurationAdapter
public DurationAdapter()
-
-
Method Details
-
write
public void write(@NotNull @NotNull com.google.gson.stream.JsonWriter out, @Nullable @Nullable Duration value) throws IOException - Specified by:
writein classcom.google.gson.TypeAdapter<Duration>- Throws:
IOException
-
read
@NotNull public @NotNull Duration read(@NotNull @NotNull com.google.gson.stream.JsonReader in) throws IOException - Specified by:
readin classcom.google.gson.TypeAdapter<Duration>- Throws:
IOException
-