Class UpdateAmountForEachMatchingQuantity
java.lang.Object
cdm.product.common.settlement.functions.UpdateAmountForEachMatchingQuantity
- All Implemented Interfaces:
com.rosetta.model.lib.functions.RosettaFunction
- Direct Known Subclasses:
UpdateAmountForEachMatchingQuantity.UpdateAmountForEachMatchingQuantityDefault
public abstract class UpdateAmountForEachMatchingQuantity
extends Object
implements com.rosetta.model.lib.functions.RosettaFunction
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.rosetta.model.lib.functions.ModelObjectValidatorprotected UpdatePriceAmountForEachMatchingQuantity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract List<PriceQuantity.PriceQuantityBuilder> doEvaluate(List<? extends PriceQuantity> priceQuantityList, List<? extends PriceQuantity> change, QuantityChangeDirectionEnum direction) List<? extends PriceQuantity> evaluate(List<? extends PriceQuantity> priceQuantityList, List<? extends PriceQuantity> change, QuantityChangeDirectionEnum direction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.rosetta.model.lib.functions.RosettaFunction
toBuilder, toBuilder, toBuilder
-
Field Details
-
objectValidator
@Inject protected com.rosetta.model.lib.functions.ModelObjectValidator objectValidator -
updatePriceAmountForEachMatchingQuantity
-
updateQuantityAmountForEachMatchingQuantity
@Inject protected UpdateQuantityAmountForEachMatchingQuantity updateQuantityAmountForEachMatchingQuantity
-
-
Constructor Details
-
UpdateAmountForEachMatchingQuantity
public UpdateAmountForEachMatchingQuantity()
-
-
Method Details
-
evaluate
public List<? extends PriceQuantity> evaluate(List<? extends PriceQuantity> priceQuantityList, List<? extends PriceQuantity> change, QuantityChangeDirectionEnum direction) - Parameters:
priceQuantityList- List of PriceQuantity to update.change- List of new PriceQuantity to use where the units match.direction- Enum specifying how the updated amounts should be applied, e.g., add, subtract or replace.- Returns:
- updatedPriceQuantity List of PriceQuantity with the price and quantity amounts updated.
-
doEvaluate
protected abstract List<PriceQuantity.PriceQuantityBuilder> doEvaluate(List<? extends PriceQuantity> priceQuantityList, List<? extends PriceQuantity> change, QuantityChangeDirectionEnum direction)
-