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 Type
    Method
    Description
    default @Nullable ModelRotator
    Deserializes a default instance.
    default @Nullable ModelRotator
    apply(long value)
    Deserializes from a long value.
    @Nullable ModelRotator
    apply(@NotNull com.google.gson.JsonElement element)
     

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • apply

      @Nullable @Nullable ModelRotator apply(@NotNull @NotNull com.google.gson.JsonElement element)
      Specified by:
      apply in interface Function<com.google.gson.JsonElement,ModelRotator>
    • apply

      @Nullable default @Nullable ModelRotator apply()
      Deserializes a default instance.
      Returns:
      the rotator
      Since:
      1.15.2
    • apply

      @Nullable default @Nullable ModelRotator apply(long value)
      Deserializes from a long value.
      Parameters:
      value - the value
      Returns:
      the rotator
      Since:
      1.15.2