Package cdm.observable.asset
Class PriceComposite.PriceCompositeImpl
java.lang.Object
cdm.observable.asset.PriceComposite.PriceCompositeImpl
- All Implemented Interfaces:
PriceComposite,com.rosetta.model.lib.RosettaModelObject
- Enclosing interface:
PriceComposite
Immutable Implementation of PriceComposite
-
Nested Class Summary
Nested classes/interfaces inherited from interface cdm.observable.asset.PriceComposite
PriceComposite.PriceCompositeBuilder, PriceComposite.PriceCompositeBuilderImpl, PriceComposite.PriceCompositeImpl -
Field Summary
Fields inherited from interface cdm.observable.asset.PriceComposite
metaData -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build MethodsbooleanSpecifies the arithmetic operator via an enumeration.The 1st value in the arithmetic operation, which may be non-commutative in some cases: Subtract, Divide).The 2nd value in the arithmetic operation, which may be non-commutative in some cases: Subtract, Divide).Optionally qualifies the type of operand: e.g. accrued or forward point.inthashCode()protected voidtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface cdm.observable.asset.PriceComposite
getType, metaData, processMethods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosetta
-
Constructor Details
-
PriceCompositeImpl
-
-
Method Details
-
getBaseValue
@RosettaAttribute(value="baseValue", isRequired=true) @RuneAttribute(value="baseValue", isRequired=true) public BigDecimal getBaseValue()Description copied from interface:PriceCompositeThe 1st value in the arithmetic operation, which may be non-commutative in some cases: Subtract, Divide). This 1st operand is called 'baseValue' as it refers to the price anchor in the arithmetic operation: e.g. the clean price (Bond) or the spot rate (FX).- Specified by:
getBaseValuein interfacePriceComposite
-
getOperand
@RosettaAttribute(value="operand", isRequired=true) @RuneAttribute(value="operand", isRequired=true) public BigDecimal getOperand()Description copied from interface:PriceCompositeThe 2nd value in the arithmetic operation, which may be non-commutative in some cases: Subtract, Divide). The 2nd operand is called 'operand' to distinguish it from the 1st one which is the price anchor.- Specified by:
getOperandin interfacePriceComposite
-
getArithmeticOperator
@RosettaAttribute(value="arithmeticOperator", isRequired=true) @RuneAttribute(value="arithmeticOperator", isRequired=true) public ArithmeticOperationEnum getArithmeticOperator()Description copied from interface:PriceCompositeSpecifies the arithmetic operator via an enumeration.- Specified by:
getArithmeticOperatorin interfacePriceComposite
-
getOperandType
@RosettaAttribute("operandType") @RuneAttribute("operandType") public PriceOperandEnum getOperandType()Description copied from interface:PriceCompositeOptionally qualifies the type of operand: e.g. accrued or forward point.- Specified by:
getOperandTypein interfacePriceComposite
-
build
Description copied from interface:PriceCompositeBuild Methods- Specified by:
buildin interfacePriceComposite- Specified by:
buildin interfacecom.rosetta.model.lib.RosettaModelObject
-
toBuilder
- Specified by:
toBuilderin interfacePriceComposite- Specified by:
toBuilderin interfacecom.rosetta.model.lib.RosettaModelObject
-
setBuilderFields
-
equals
-
hashCode
public int hashCode() -
toString
-