Class ResolvedPart<S,T extends FeatureInput>
Object
ResolvedPart<S,T>
- Type Parameters:
S- result-type of the calculationT- feature input-type
Like a
CalculationPart but has been resolved against a cache to reuse any existing
identical instance.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionResolvedPart(CalculationPart<S, T> calculation) Creates a newResolvedPartinstance. -
Method Summary
-
Constructor Details
-
ResolvedPart
Creates a newResolvedPartinstance.- Parameters:
calculation- The calculation-part 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 previously.- Parameters:
input- If there is no existing cached-value, and the calculation occurs, these parameters are used. Otherwise ignored.- Returns:
- the result of the calculation.
- Throws:
FeatureCalculationException- if the calculation cannot finish, for whatever reason.
-
equals
-
hashCode
public int hashCode()
-