Interface IResourceStoreManager.IVersionedResourceStoreWithVersionExtractor<Key,Value>
- Type Parameters:
Key- The type of the key.Value- The type of the derived value.
- All Superinterfaces:
IResourceStoreManager.IVersionedResourceStoreBase<Key,Value>, IResourceStoreManager.IVersionedResourceStoreWithVersionExtractorBase<Key, Value>
- Enclosing interface:
IResourceStoreManager
public static interface IResourceStoreManager.IVersionedResourceStoreWithVersionExtractor<Key,Value>
extends IResourceStoreManager.IVersionedResourceStoreWithVersionExtractorBase<Key,Value>
Same as
IResourceStoreManager.IVersionedResourceStore, but with a bound version extractor that does not need to be specified
each time when requesting a value for a key.
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
Modifier and TypeMethodDescriptionbindLoader(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 IResourceStoreManager.IVersionedResourceStoreBase
computeIfAbsent, getIfPresent, remove, removeAndGetIfPresentMethods inherited from interface IResourceStoreManager.IVersionedResourceStoreWithVersionExtractorBase
computeIfAbsent, getIfPresent, removeAndGetIfPresent
-
Method Details
-
bindLoader
IResourceStoreManager.IVersionedResourceStoreWithLoaderAndVersionExtractor<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.
-