Class StateBasedVersionedMapStoreFactory<K,V>
java.lang.Object
tools.refinery.store.map.internal.state.StateBasedVersionedMapStoreFactory<K,V>
- All Implemented Interfaces:
VersionedMapStoreFactory<K,
V>
public class StateBasedVersionedMapStoreFactory<K,V>
extends Object
implements VersionedMapStoreFactory<K,V>
-
Constructor Summary
ConstructorDescriptionStateBasedVersionedMapStoreFactory
(V defaultValue, Boolean transformToImmutable, VersionedMapStoreFactoryBuilder.SharingStrategy sharingStrategy, boolean versionFreeingEnabled, ContinuousHashProvider<K> continuousHashProvider) -
Method Summary
Modifier and TypeMethodDescriptioncreateGroup
(int amount) Constructs a group ofVersionedMap
s with the same configuration.Constructs a new instance ofVersionedMap
.
-
Constructor Details
-
StateBasedVersionedMapStoreFactory
public StateBasedVersionedMapStoreFactory(V defaultValue, Boolean transformToImmutable, VersionedMapStoreFactoryBuilder.SharingStrategy sharingStrategy, boolean versionFreeingEnabled, ContinuousHashProvider<K> continuousHashProvider)
-
-
Method Details
-
createOne
Description copied from interface:VersionedMapStoreFactory
Constructs a new instance ofVersionedMap
.- Specified by:
createOne
in interfaceVersionedMapStoreFactory<K,
V> - Returns:
- The new instance.
-
createGroup
Description copied from interface:VersionedMapStoreFactory
Constructs a group ofVersionedMap
s with the same configuration. If possible, the stores share resources with each other.- Specified by:
createGroup
in interfaceVersionedMapStoreFactory<K,
V> - Parameters:
amount
- The amount of new instances to be created.- Returns:
- A list of new stores with the given number of elements.
-