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 aFeatureCalculationInputto associate withinput.
-
Constructor Details
-
AlwaysNew
Constructor with default means of creating aFeatureCalculationInput.- Parameters:
cacheCreator- creates aFeatureCalculationCache.
-
AlwaysNew
-
-
Method Details
-
createOrReuse
Description copied from interface:ReplaceStrategyFind or create aFeatureCalculationInputto associate withinput.- Specified by:
createOrReusein interfaceReplaceStrategy<T extends FeatureInput>- Parameters:
input- the input that aFeatureCalculationInputwill be associated with.- Returns:
- the
FeatureCalculationInput, either newly created, or reused from a previous call.
-