Class CalculateDeriveSingleMemoFromPair
Object
org.anchoranalysis.feature.calculate.part.CalculationPart<FeatureInputSingleMemo,FeatureInputPairMemo>
org.anchoranalysis.mpp.feature.bean.energy.element.CalculateDeriveSingleMemoFromPair
- All Implemented Interfaces:
ResettableCalculation
public class CalculateDeriveSingleMemoFromPair extends CalculationPart<FeatureInputSingleMemo,FeatureInputPairMemo>
Derives a
FeatureInputSingleMemo from a FeatureInputPairMemo.
This class selects either the first or second object from a pair of memoized objects, creating
a new FeatureInputSingleMemo with the selected object and the energy stack.
-
Constructor Summary
Constructors Constructor Description CalculateDeriveSingleMemoFromPair(boolean first) -
Method Summary
Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)protected FeatureInputSingleMemoexecute(FeatureInputPairMemo input)inthashCode()Methods inherited from class org.anchoranalysis.feature.calculate.part.CalculationPart
getOrCalculate, hasCachedResult, invalidate
-
Constructor Details
-
CalculateDeriveSingleMemoFromPair
public CalculateDeriveSingleMemoFromPair(boolean first)
-
-
Method Details
-
execute
- Specified by:
executein classCalculationPart<FeatureInputSingleMemo,FeatureInputPairMemo>
-
equals
- Specified by:
equalsin classCalculationPart<FeatureInputSingleMemo,FeatureInputPairMemo>
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCodein classCalculationPart<FeatureInputSingleMemo,FeatureInputPairMemo>
-