T
- feature-input typepublic class AlwaysNew<T extends FeatureInput> extends Object implements ReplaceStrategy<T>
SessionInputSequential
with no reuse or caching between calls.Constructor and Description |
---|
AlwaysNew(CacheCreator cacheCreator)
Constructor with default means of creating a
FeatureCalculationInput . |
AlwaysNew(CacheCreator cacheCreator,
ChildCacheFinder findChildStrategy) |
Modifier and Type | Method and Description |
---|---|
FeatureCalculationInput<T> |
createOrReuse(T input)
Find or create a
FeatureCalculationInput to associate with input . |
public AlwaysNew(CacheCreator cacheCreator)
FeatureCalculationInput
.cacheCreator
- creates a FeatureCalculationCache
.public AlwaysNew(CacheCreator cacheCreator, ChildCacheFinder findChildStrategy)
public FeatureCalculationInput<T> createOrReuse(T input)
ReplaceStrategy
FeatureCalculationInput
to associate with input
.createOrReuse
in interface ReplaceStrategy<T extends FeatureInput>
input
- the input that a FeatureCalculationInput
will be associated with.FeatureCalculationInput
, either newly created, or reused from a previous
call.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.