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> T
Deprecated.Retrieve value matching providedkey
from the storage.<T> T
getOrDefault
(String key, Class<T> cls, T defaultValue) Deprecated.Retrieve value providedkey
from the storage ordefaultValue
when storage does not contain providedkey
.void
Deprecated.Store value under providedkey
in the storage.void
putOrReplace
(String key, Object value) Deprecated.Store value under providedkey
in the storage.
-
Method Details
-
get
Deprecated.Retrieve value matching providedkey
from 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
null
when providedkey
was not found
-
getOrDefault
Deprecated.Retrieve value providedkey
from the storage ordefaultValue
when 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 providedkey
was not found- Returns:
- value from the storage or
null
when no such value is stored
-
put
Deprecated.Store value under providedkey
in the storage. Value will not be stored when already exists.- Parameters:
key
- key of the valuevalue
- value to store
-
putOrReplace
Deprecated.Store value under providedkey
in the storage. Value will replace stored value nder providedkey
when already exists.- Parameters:
key
- key of the valuevalue
- value to store
-