Package cdm.product.template.functions
Class ReplaceTradeLot
java.lang.Object
cdm.product.template.functions.ReplaceTradeLot
- All Implemented Interfaces:
com.rosetta.model.lib.functions.RosettaFunction
- Direct Known Subclasses:
ReplaceTradeLot.ReplaceTradeLotDefault
public abstract class ReplaceTradeLot
extends Object
implements com.rosetta.model.lib.functions.RosettaFunction
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.rosetta.model.lib.functions.ModelObjectValidator -
Constructor Summary
Constructors -
Method Summary
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
-
-
Constructor Details
-
ReplaceTradeLot
public ReplaceTradeLot()
-
-
Method Details
-
evaluate
- Parameters:
tradeLots- Input list of TradeLots.newTradeLot- The TradeLot to replace a matching TradeLot in the list.- Returns:
- mergedTradeLots
-
doEvaluate
protected abstract List<TradeLot.TradeLotBuilder> doEvaluate(List<? extends TradeLot> tradeLots, TradeLot newTradeLot)
-