Class ResolvedPartMap<S,T extends FeatureInput,U>
Object
ResolvedPartMap<S,T,U>
- Type Parameters:
S
- result-typeT
- feature input-typeU
- key-type
A
CalculationPartMap
that has been resolved against a cache.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionCreates with a map. -
Method Summary
-
Constructor Details
-
ResolvedPartMap
Creates with a map.- Parameters:
map
- theCalculationPartMap
that 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()
-