Interface IResourceStoreManager.IResourceStore<Key,Value>
-
- Type Parameters:
Key
- The type of the key.Value
- The type of the associated value.
- All Superinterfaces:
IResourceStoreManager.IResourceStoreBase<Key,Value>
- Enclosing interface:
- IResourceStoreManager
public static interface IResourceStoreManager.IResourceStore<Key,Value> extends IResourceStoreManager.IResourceStoreBase<Key,Value>
Manages values associated with a certain type of key. Each key can be associated with a value, such as e.g. a file with a thumbnail.Additionally, you can also bind a loader, so that you do not have to specify the loader each time you wish to obtain a value for a key.
- Since:
- 8.3.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IResourceStoreManager.IResourceStoreWithLoader<Key,Value>
bindLoader(ISerializableThrowingFunction<? super Key,? extends Value> loader)
Binds to a given loader so that values can be obtained without specifying the loader.-
Methods inherited from interface de.xima.fc.common.store.versioned.IResourceStoreManager.IResourceStoreBase
computeIfAbsent, getIfPresent, remove, removeAndGetIfPresent
-
-
-
-
Method Detail
-
bindLoader
IResourceStoreManager.IResourceStoreWithLoader<Key,Value> bindLoader(ISerializableThrowingFunction<? super Key,? extends Value> loader)
Binds to a given loader so that values can be obtained without specifying the loader.- Parameters:
loader
- The loader to bind to.- Returns:
- The store, bound to a loader.
-
-