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.
Functional interface for deserializing a specific CustomDataField class.
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(@NotNull String key, @Nullable String value) Returns a new class that extends CustomDataField given a key and string value.
-
Method Details
-
deserialize
Returns a new class that extends CustomDataField given a key and string value. If this method returnsnull
, the specific metadata with this key and value will not be loaded and skipped.- Parameters:
key
- Key for the CustomDataFieldvalue
- String value for the CustomDataField which can benull
.- Returns:
- the deserialized CustomDataField class.
-