Package kr.toxicity.model.api.tracker
Interface ModelRotator.BuiltInDeserializer
- All Superinterfaces:
Function<com.google.gson.JsonElement,ModelRotator>
- Enclosing interface:
ModelRotator
public static interface ModelRotator.BuiltInDeserializer
extends Function<com.google.gson.JsonElement,ModelRotator>
Helper interface for built-in deserializers.
- Since:
- 1.15.2
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable ModelRotatorapply()Deserializes a default instance.default @Nullable ModelRotatorapply(long value) Deserializes from a long value.@Nullable ModelRotatorapply(@NotNull com.google.gson.JsonElement element)
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<com.google.gson.JsonElement,ModelRotator>
-
apply
Deserializes a default instance.- Returns:
- the rotator
- Since:
- 1.15.2
-
apply
Deserializes from a long value.- Parameters:
value- the value- Returns:
- the rotator
- Since:
- 1.15.2
-