Package cdm.product.template
Class ConstituentWeight.ConstituentWeightBuilderImpl
java.lang.Object
cdm.product.template.ConstituentWeight.ConstituentWeightBuilderImpl
- All Implemented Interfaces:
ConstituentWeight,ConstituentWeight.ConstituentWeightBuilder,com.rosetta.model.lib.RosettaModelObject,com.rosetta.model.lib.RosettaModelObjectBuilder
- Enclosing interface:
ConstituentWeight
public static class ConstituentWeight.ConstituentWeightBuilderImpl
extends Object
implements ConstituentWeight.ConstituentWeightBuilder
Builder Implementation of ConstituentWeight
-
Nested Class Summary
Nested classes/interfaces inherited from interface cdm.product.template.ConstituentWeight
ConstituentWeight.ConstituentWeightBuilder, ConstituentWeight.ConstituentWeightBuilderImpl, ConstituentWeight.ConstituentWeightImpl -
Field Summary
FieldsFields inherited from interface cdm.product.template.ConstituentWeight
metaData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build MethodsbooleanThe relative weight of each respective basket constituent, expressed in percentage.The number of units (index or securities) that constitute the underlier of the swap.booleanhasData()inthashCode()merge(com.rosetta.model.lib.RosettaModelObjectBuilder other, com.rosetta.model.lib.process.BuilderMerger merger) prune()setBasketPercentage(BigDecimal _basketPercentage) setOpenUnits(BigDecimal _openUnits) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface cdm.product.template.ConstituentWeight
getType, metaData, processMethods inherited from interface cdm.product.template.ConstituentWeight.ConstituentWeightBuilder
processMethods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosettaMethods inherited from interface com.rosetta.model.lib.RosettaModelObjectBuilder
getIndex, processRosetta, processRosetta
-
Field Details
-
openUnits
-
basketPercentage
-
-
Constructor Details
-
ConstituentWeightBuilderImpl
public ConstituentWeightBuilderImpl()
-
-
Method Details
-
getOpenUnits
Description copied from interface:ConstituentWeightThe number of units (index or securities) that constitute the underlier of the swap. In the case of a basket swap, this element is used to reference both the number of basket units, and the number of each asset components of the basket when these are expressed in absolute terms.- Specified by:
getOpenUnitsin interfaceConstituentWeight
-
getBasketPercentage
@RosettaAttribute("basketPercentage") @RuneAttribute("basketPercentage") public BigDecimal getBasketPercentage()Description copied from interface:ConstituentWeightThe relative weight of each respective basket constituent, expressed in percentage. A basket percentage of 5% would be represented as 0.05.- Specified by:
getBasketPercentagein interfaceConstituentWeight
-
setOpenUnits
@RosettaAttribute("openUnits") @RuneAttribute("openUnits") public ConstituentWeight.ConstituentWeightBuilder setOpenUnits(BigDecimal _openUnits) - Specified by:
setOpenUnitsin interfaceConstituentWeight.ConstituentWeightBuilder
-
setBasketPercentage
@RosettaAttribute("basketPercentage") @RuneAttribute("basketPercentage") public ConstituentWeight.ConstituentWeightBuilder setBasketPercentage(BigDecimal _basketPercentage) - Specified by:
setBasketPercentagein interfaceConstituentWeight.ConstituentWeightBuilder
-
build
Description copied from interface:ConstituentWeightBuild Methods- Specified by:
buildin interfaceConstituentWeight- Specified by:
buildin interfacecom.rosetta.model.lib.RosettaModelObject
-
toBuilder
- Specified by:
toBuilderin interfaceConstituentWeight- Specified by:
toBuilderin interfacecom.rosetta.model.lib.RosettaModelObject
-
prune
- Specified by:
prunein interfaceConstituentWeight.ConstituentWeightBuilder- Specified by:
prunein interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
hasData
public boolean hasData()- Specified by:
hasDatain interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
merge
public ConstituentWeight.ConstituentWeightBuilder 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
-