Interface IEntityDeserializationStateHolder
-
public interface IEntityDeserializationStateHolderState holder for setting and retrieving data, used byIEntityDeserializationExtension. The state's lifecycle is tied to the entity being serialized. In particular, state set inhandlePreFieldDeserializationHookwill be available inhandlePostEntityDeserializationHook.- Since:
- 8.3.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectget(String key)Gets the value associated with the given key.<T> Tget(String key, Class<T> type)Gets the value associated with the given key, cast to the given type.voidput(String key, Object value)Associates the given value with the given key.voidremove(String key)Removes the association with the given key.
-
-
-
Method Detail
-
get
Object get(String key)
Gets the value associated with the given key.- Parameters:
key- The key to look up.- Returns:
- The value associated with the key, or null if no value is associated with the key.
-
get
<T> T get(String key, Class<T> type)
Gets the value associated with the given key, cast to the given type. Returns null when the value is of the wrong type or no value is associated with the key.- Type Parameters:
T- The type to cast the value to.- Parameters:
key- The key to look up.type- The type to cast the value to.- Returns:
- The value associated with the key, or null if no value is associated with the key or the value is of the wrong type.
-
put
void put(String key, Object value)
Associates the given value with the given key. Removes the association if the value is null.- Parameters:
key- The key to associate the value with.value- The value to associate with the key.
-
remove
void remove(String key)
Removes the association with the given key.- Parameters:
key- The key to remove the association for.
-
-