Class AlwaysNew<T extends FeatureInput>
Object
AlwaysNew<T>
- Type Parameters:
T
- feature-input type
- All Implemented Interfaces:
ReplaceStrategy<T>
Always create a new
SessionInputSequential
with no reuse or caching between calls.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionAlwaysNew
(CacheCreator cacheCreator) Constructor with default means of creating aFeatureCalculationInput
.AlwaysNew
(CacheCreator cacheCreator, ChildCacheFinder findChildStrategy) -
Method Summary
Modifier and TypeMethodDescriptioncreateOrReuse
(T input) Find or create aFeatureCalculationInput
to associate withinput
.
-
Constructor Details
-
AlwaysNew
Constructor with default means of creating aFeatureCalculationInput
.- Parameters:
cacheCreator
- creates aFeatureCalculationCache
.
-
AlwaysNew
-
-
Method Details
-
createOrReuse
Description copied from interface:ReplaceStrategy
Find or create aFeatureCalculationInput
to associate withinput
.- Specified by:
createOrReuse
in interfaceReplaceStrategy<T extends FeatureInput>
- Parameters:
input
- the input that aFeatureCalculationInput
will be associated with.- Returns:
- the
FeatureCalculationInput
, either newly created, or reused from a previous call.
-