Class ResolvedPart<S,T extends FeatureInput>
Object
org.anchoranalysis.feature.calculate.cache.part.ResolvedPart<S,T>
- Type Parameters:
S- result-type of the calculationT- feature input-type
public class ResolvedPart<S,T extends FeatureInput> extends Object
Like a
CalculationPart but has been resolved against a cache to reuse any existing
identical instance.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description ResolvedPart(CalculationPart<S,T> calculation) -
Method Summary
-
Constructor Details
-
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()
-