S
- optional final-type of CalculationPart
.T
- feature input-type as input to cached-calculations.U
- delegate-type of CalculationPart
.public abstract class CalculateInputFromDelegateOption<S extends FeatureInput,T extends FeatureInput,U> extends CalculateInputFromDelegate<Optional<S>,T,U>
CalculateInputFromDelegate
except assumes optional return value and no parameters.Modifier | Constructor and Description |
---|---|
protected |
CalculateInputFromDelegateOption(ResolvedPart<U,T> delegate)
Creates with a delegate.
|
Modifier and Type | Method and Description |
---|---|
static <S extends FeatureInput,T extends FeatureInput,U> |
calc(FeatureCalculationInput<T> input,
CalculationPart<U,T> delegate,
java.util.function.Function<ResolvedPart<U,T>,CalculateInputFromDelegateOption<S,T,U>> createFromDelegate,
Feature<S> feature,
ChildCacheName cacheName,
double emptyValue)
Calculates a feature using a cached-calculation as delegate.
|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
int |
hashCode() |
deriveFromDelegate, execute, getDelegate
getOrCalculate, hasCachedResult, invalidate
protected CalculateInputFromDelegateOption(ResolvedPart<U,T> delegate)
delegate
- the resolved-calculation for the delegate.public static <S extends FeatureInput,T extends FeatureInput,U> double calc(FeatureCalculationInput<T> input, CalculationPart<U,T> delegate, java.util.function.Function<ResolvedPart<U,T>,CalculateInputFromDelegateOption<S,T,U>> createFromDelegate, Feature<S> feature, ChildCacheName cacheName, double emptyValue) throws FeatureCalculationException
S
- optional final input-type for calculationT
- input-type for calculationU
- delegate-type of CachedCalculationinput
- feature-input.delegate
- the Cached-Calculation delegate used.createFromDelegate
- creates a calculation from the delegates.feature
- feature to use to calculate the output result.cacheName
- a sub-cache of the main cache to use for calculating the output feature.emptyValue
- what to return if the parameters are empty.FeatureCalculationException
- if the calculation does not succeed successfully.public boolean equals(Object o)
equals
in class CalculateInputFromDelegate<Optional<S extends FeatureInput>,T extends FeatureInput,U>
protected boolean canEqual(Object other)
canEqual
in class CalculateInputFromDelegate<Optional<S extends FeatureInput>,T extends FeatureInput,U>
public int hashCode()
hashCode
in class CalculateInputFromDelegate<Optional<S extends FeatureInput>,T extends FeatureInput,U>
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.