Class ResolvedPartMap<S,T extends FeatureInput,U>
Object
org.anchoranalysis.feature.calculate.cache.part.ResolvedPartMap<S,T,U>
- Type Parameters:
S- result-typeT- feature input-typeU- key-type
public class ResolvedPartMap<S,T extends FeatureInput,U> extends Object
A
CalculationPartMap that has been resolved against a cache.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description ResolvedPartMap(CalculationPartMap<S,T,U,FeatureCalculationException> map)Creates with a map. -
Method Summary
-
Constructor Details
-
ResolvedPartMap
Creates with a map.- Parameters:
map- theCalculationPartMapthat is now considered resolved.
-
-
Method Details
-
getOrCalculate
Executes the operation and returns a result, either by doing the calculation, or retrieving a cached-result from a previous execution.- Parameters:
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.- Returns:
- the result of the calculation.
- Throws:
FeatureCalculationException- if the calculation cannot successfully complete.
-
equals
-
hashCode
public int hashCode()
-