Package cdm.event.common
Class QuantityChangeInstruction.QuantityChangeInstructionImpl
java.lang.Object
cdm.event.common.QuantityChangeInstruction.QuantityChangeInstructionImpl
- All Implemented Interfaces:
QuantityChangeInstruction,com.rosetta.model.lib.RosettaModelObject
- Enclosing interface:
QuantityChangeInstruction
public static class QuantityChangeInstruction.QuantityChangeInstructionImpl
extends Object
implements QuantityChangeInstruction
Immutable Implementation of QuantityChangeInstruction
-
Nested Class Summary
Nested classes/interfaces inherited from interface cdm.event.common.QuantityChangeInstruction
QuantityChangeInstruction.QuantityChangeInstructionBuilder, QuantityChangeInstruction.QuantityChangeInstructionBuilderImpl, QuantityChangeInstruction.QuantityChangeInstructionImpl -
Field Summary
Fields inherited from interface cdm.event.common.QuantityChangeInstruction
metaData -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build MethodsbooleanList<? extends PriceQuantity> Quantity by which the trade is being increased, decreased or replaced, and the price at which such quantity change is agreed.Direction of the quantity change specified as either an increase, decrease or replacement.List<? extends Identifier> Identifier for the new lot (in case of increase) or for the existing lot to be changed(in case of decrease or replacement).inthashCode()protected voidtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface cdm.event.common.QuantityChangeInstruction
getType, metaData, processMethods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosetta
-
Constructor Details
-
QuantityChangeInstructionImpl
protected QuantityChangeInstructionImpl(QuantityChangeInstruction.QuantityChangeInstructionBuilder builder)
-
-
Method Details
-
getChange
@RosettaAttribute(value="change", isRequired=true) @RuneAttribute(value="change", isRequired=true) public List<? extends PriceQuantity> getChange()Description copied from interface:QuantityChangeInstructionQuantity by which the trade is being increased, decreased or replaced, and the price at which such quantity change is agreed. The quantity change should always be specified as a positive number, with the direction (increase/decrease/replacement) being specified by the direction enumeration. A fee can also be associated to the quantity change by specifying a Price component of type CashPrice, including the corresponding settlement date and direction.- Specified by:
getChangein interfaceQuantityChangeInstruction
-
getDirection
@RosettaAttribute(value="direction", isRequired=true) @RuneAttribute(value="direction", isRequired=true) public QuantityChangeDirectionEnum getDirection()Description copied from interface:QuantityChangeInstructionDirection of the quantity change specified as either an increase, decrease or replacement.- Specified by:
getDirectionin interfaceQuantityChangeInstruction
-
getLotIdentifier
@RosettaAttribute("lotIdentifier") @RuneAttribute("lotIdentifier") public List<? extends Identifier> getLotIdentifier()Description copied from interface:QuantityChangeInstructionIdentifier for the new lot (in case of increase) or for the existing lot to be changed(in case of decrease or replacement). This optional attribute is mandatory in case of a decrease or replacement if the initial trade state contains multiple trade lots.- Specified by:
getLotIdentifierin interfaceQuantityChangeInstruction
-
build
Description copied from interface:QuantityChangeInstructionBuild Methods- Specified by:
buildin interfaceQuantityChangeInstruction- Specified by:
buildin interfacecom.rosetta.model.lib.RosettaModelObject
-
toBuilder
- Specified by:
toBuilderin interfaceQuantityChangeInstruction- Specified by:
toBuilderin interfacecom.rosetta.model.lib.RosettaModelObject
-
setBuilderFields
-
equals
-
hashCode
public int hashCode() -
toString
-