Deprecated.
this is a feature in progress of development, there may be backward incompatible changes done to it, so please
use with care
Suite specific storage.
-
Method Summary
Modifier and TypeMethodDescription<T> TDeprecated.Retrieve value matching providedkeyfrom the storage.<T> TgetOrDefault(String key, Class<T> cls, T defaultValue) Deprecated.Retrieve value providedkeyfrom the storage ordefaultValuewhen storage does not contain providedkey.voidDeprecated.Store value under providedkeyin the storage.voidputOrReplace(String key, Object value) Deprecated.Store value under providedkeyin the storage.
-
Method Details
-
get
Deprecated.Retrieve value matching providedkeyfrom the storage.- Type Parameters:
T- target type of the value- Parameters:
key- key of the valuecls- target type of the value- Returns:
- value from the storage or
nullwhen providedkeywas not found
-
getOrDefault
Deprecated.Retrieve value providedkeyfrom the storage ordefaultValuewhen storage does not contain providedkey.- Type Parameters:
T- target type of the value- Parameters:
key- key of the valuecls- target type of the valuedefaultValue- value to return when providedkeywas not found- Returns:
- value from the storage or
nullwhen no such value is stored
-
put
Deprecated.Store value under providedkeyin the storage. Value will not be stored when already exists.- Parameters:
key- key of the valuevalue- value to store
-
putOrReplace
Deprecated.Store value under providedkeyin the storage. Value will replace stored value nder providedkeywhen already exists.- Parameters:
key- key of the valuevalue- value to store
-