Interface IResourceStoreManager.IVersionedResourceStoreWithLoader<Key,Value>
- Type Parameters:
Key- The type of the key.Value- The type of the derived value.
- All Superinterfaces:
IResourceStoreManager.IVersionedResourceStoreBase<Key,Value>, IResourceStoreManager.IVersionedResourceStoreWithLoaderBase<Key, Value>
- Enclosing interface:
IResourceStoreManager
public static interface IResourceStoreManager.IVersionedResourceStoreWithLoader<Key,Value>
extends IResourceStoreManager.IVersionedResourceStoreWithLoaderBase<Key,Value>
Same as
IResourceStoreManager.IVersionedResourceStore, but with a bound loader that does not need to be specified each time
when requesting a value for a key.- Since:
- 8.3.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionbindVersionExtractor(ISerializableThrowingFunction<? super Key, ?> versionExtractor) Binds to a given version extractor so that values can be obtained without specifying the version.Methods inherited from interface IResourceStoreManager.IVersionedResourceStoreBase
computeIfAbsent, getIfPresent, remove, removeAndGetIfPresentMethods inherited from interface IResourceStoreManager.IVersionedResourceStoreWithLoaderBase
computeIfAbsent
-
Method Details
-
bindVersionExtractor
IResourceStoreManager.IVersionedResourceStoreWithLoaderAndVersionExtractor<Key,Value> bindVersionExtractor(ISerializableThrowingFunction<? super Key, ?> versionExtractor) Binds to a given version extractor so that values can be obtained without specifying the version.- Parameters:
versionExtractor- The version extractor to bind to.- Returns:
- The store, bound to a loader.
-