Interface DataFieldDeserializer<T extends CustomDataField<?>>

Type Parameters:
T - Specific CustomDataField class to deserialize.
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface DataFieldDeserializer<T extends CustomDataField<?>>
Functional interface for deserializing a specific CustomDataField class.
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(@NotNull String key, @Nullable String value)
    Returns a new class that extends CustomDataField given a key and string value.
  • Method Details

    • deserialize

      @Nullable T deserialize(@NotNull @NotNull String key, @Nullable @Nullable String value)
      Returns a new class that extends CustomDataField given a key and string value. If this method returns null, the specific metadata with this key and value will not be loaded and skipped.
      Parameters:
      key - Key for the CustomDataField
      value - String value for the CustomDataField which can be null.
      Returns:
      the deserialized CustomDataField class.