S
- result-typeT
- feature input-typeU
- key-typepublic class ResolvedPartMap<S,T extends FeatureInput,U> extends Object
CalculationPartMap
that has been resolved against a cache.Constructor and Description |
---|
ResolvedPartMap(CalculationPartMap<S,T,U,FeatureCalculationException> map)
Creates with a map.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
S |
getOrCalculate(T input,
U key)
Executes the operation and returns a result, either by doing the calculation, or retrieving a
cached-result from a previous execution.
|
int |
hashCode() |
public ResolvedPartMap(CalculationPartMap<S,T,U,FeatureCalculationException> map)
map
- the CalculationPartMap
that is now considered resolved.public S getOrCalculate(T input, U key) throws FeatureCalculationException
input
- used to calculate a result, if there is no value already cached. Ignored if a
result already exists.key
- the key, which determines if a result already exists or not.FeatureCalculationException
- if the calculation cannot successfully complete.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.