S
- result-type of the calculationT
- feature input-typepublic class ResolvedPart<S,T extends FeatureInput> extends Object
CalculationPart
but has been resolved against a cache to reuse any existing
identical instance.Constructor and Description |
---|
ResolvedPart(CalculationPart<S,T> calculation) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
S |
getOrCalculate(T input)
Executes the operation and returns a result, either by doing the calculation, or retrieving a
cached-result from previously.
|
int |
hashCode() |
public ResolvedPart(CalculationPart<S,T> calculation)
public S getOrCalculate(T input) throws FeatureCalculationException
input
- If there is no existing cached-value, and the calculation occurs, these
parameters are used. Otherwise ignored.FeatureCalculationException
- if the calculation cannot finish, for whatever reason.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.