Package cdm.observable.asset
Class PriceComposite.PriceCompositeBuilderImpl
java.lang.Object
cdm.observable.asset.PriceComposite.PriceCompositeBuilderImpl
- All Implemented Interfaces:
PriceComposite,PriceComposite.PriceCompositeBuilder,com.rosetta.model.lib.RosettaModelObject,com.rosetta.model.lib.RosettaModelObjectBuilder
- Enclosing interface:
PriceComposite
public static class PriceComposite.PriceCompositeBuilderImpl
extends Object
implements PriceComposite.PriceCompositeBuilder
Builder Implementation of PriceComposite
-
Nested Class Summary
Nested classes/interfaces inherited from interface cdm.observable.asset.PriceComposite
PriceComposite.PriceCompositeBuilder, PriceComposite.PriceCompositeBuilderImpl, PriceComposite.PriceCompositeImpl -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ArithmeticOperationEnumprotected BigDecimalprotected BigDecimalprotected PriceOperandEnumFields inherited from interface cdm.observable.asset.PriceComposite
metaData -
Constructor Summary
Constructors -
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.booleanhasData()inthashCode()merge(com.rosetta.model.lib.RosettaModelObjectBuilder other, com.rosetta.model.lib.process.BuilderMerger merger) prune()setArithmeticOperator(ArithmeticOperationEnum _arithmeticOperator) setBaseValue(BigDecimal _baseValue) setOperand(BigDecimal _operand) setOperandType(PriceOperandEnum _operandType) toString()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 cdm.observable.asset.PriceComposite.PriceCompositeBuilder
processMethods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosettaMethods inherited from interface com.rosetta.model.lib.RosettaModelObjectBuilder
getIndex, processRosetta, processRosetta
-
Field Details
-
baseValue
-
operand
-
arithmeticOperator
-
operandType
-
-
Constructor Details
-
PriceCompositeBuilderImpl
public PriceCompositeBuilderImpl()
-
-
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
-
setBaseValue
@RosettaAttribute(value="baseValue", isRequired=true) @RuneAttribute(value="baseValue", isRequired=true) public PriceComposite.PriceCompositeBuilder setBaseValue(BigDecimal _baseValue) - Specified by:
setBaseValuein interfacePriceComposite.PriceCompositeBuilder
-
setOperand
@RosettaAttribute(value="operand", isRequired=true) @RuneAttribute(value="operand", isRequired=true) public PriceComposite.PriceCompositeBuilder setOperand(BigDecimal _operand) - Specified by:
setOperandin interfacePriceComposite.PriceCompositeBuilder
-
setArithmeticOperator
@RosettaAttribute(value="arithmeticOperator", isRequired=true) @RuneAttribute(value="arithmeticOperator", isRequired=true) public PriceComposite.PriceCompositeBuilder setArithmeticOperator(ArithmeticOperationEnum _arithmeticOperator) - Specified by:
setArithmeticOperatorin interfacePriceComposite.PriceCompositeBuilder
-
setOperandType
@RosettaAttribute("operandType") @RuneAttribute("operandType") public PriceComposite.PriceCompositeBuilder setOperandType(PriceOperandEnum _operandType) - Specified by:
setOperandTypein interfacePriceComposite.PriceCompositeBuilder
-
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
-
prune
- Specified by:
prunein interfacePriceComposite.PriceCompositeBuilder- Specified by:
prunein interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
hasData
public boolean hasData()- Specified by:
hasDatain interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
merge
public PriceComposite.PriceCompositeBuilder merge(com.rosetta.model.lib.RosettaModelObjectBuilder other, com.rosetta.model.lib.process.BuilderMerger merger) - Specified by:
mergein interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
equals
-
hashCode
public int hashCode() -
toString
-