Package cdm.product.common.settlement
Class PriceQuantity.PriceQuantityImpl
java.lang.Object
cdm.product.common.settlement.PriceQuantity.PriceQuantityImpl
- All Implemented Interfaces:
PriceQuantity,com.rosetta.model.lib.GlobalKey,com.rosetta.model.lib.RosettaModelObject
- Enclosing interface:
PriceQuantity
Immutable Implementation of PriceQuantity
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.rosetta.model.lib.GlobalKey
com.rosetta.model.lib.GlobalKey.GlobalKeyBuilderNested classes/interfaces inherited from interface cdm.product.common.settlement.PriceQuantity
PriceQuantity.PriceQuantityBuilder, PriceQuantity.PriceQuantityBuilderImpl, PriceQuantity.PriceQuantityImpl -
Field Summary
Fields inherited from interface cdm.product.common.settlement.PriceQuantity
metaData -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build MethodsbooleanDefines the direction of the exchange.Specifies the date at which the price and quantity become effective.com.rosetta.model.metafields.MetaFieldsgetMeta()Specifies the object to be observed for a price, it could be an asset or a reference.List<? extends FieldWithMetaPriceSchedule> getPrice()Specifies a price to be used for trade amounts and other purposes.List<? extends FieldWithMetaNonNegativeQuantitySchedule> Specifies a quantity to be associated with an event, for example a trade amount.Whether the settlement is cash or physical and the corresponding terms.inthashCode()protected voidtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface cdm.product.common.settlement.PriceQuantity
getType, metaData, processMethods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosetta
-
Constructor Details
-
PriceQuantityImpl
-
-
Method Details
-
getPrice
@RosettaAttribute("price") @RuneAttribute("price") @RuneScopedAttributeKey public List<? extends FieldWithMetaPriceSchedule> getPrice()Description copied from interface:PriceQuantitySpecifies a price to be used for trade amounts and other purposes.- Specified by:
getPricein interfacePriceQuantity
-
getQuantity
@RosettaAttribute("quantity") @RuneAttribute("quantity") @RuneScopedAttributeKey public List<? extends FieldWithMetaNonNegativeQuantitySchedule> getQuantity()Description copied from interface:PriceQuantitySpecifies a quantity to be associated with an event, for example a trade amount.- Specified by:
getQuantityin interfacePriceQuantity
-
getObservable
Description copied from interface:PriceQuantitySpecifies the object to be observed for a price, it could be an asset or a reference. The cardinality is optional as some quantity / price cases have no observable (e.g. a notional and a fixed rate in a given currency).- Specified by:
getObservablein interfacePriceQuantity
-
getBuyerSeller
Description copied from interface:PriceQuantityDefines the direction of the exchange. The convention is that the buyer receives the quantity / pays the price, whereas the seller receives the price / pays the quantity. Attribute is optional in case the price/quantity settlement is defined as part of the product mechanics.- Specified by:
getBuyerSellerin interfacePriceQuantity
-
getSettlementTerms
@RosettaAttribute("settlementTerms") @RuneAttribute("settlementTerms") public SettlementTerms getSettlementTerms()Description copied from interface:PriceQuantityWhether the settlement is cash or physical and the corresponding terms. Attribute is optional in case the price/quantity settlement is defined as part of the product mechanics.- Specified by:
getSettlementTermsin interfacePriceQuantity
-
getEffectiveDate
@RosettaAttribute("effectiveDate") @RuneAttribute("effectiveDate") public AdjustableOrRelativeDate getEffectiveDate()Description copied from interface:PriceQuantitySpecifies the date at which the price and quantity become effective. This day may be subject to adjustment in accordance with a business day convention, or could be specified as relative to a trade date, for instance. Optional cardinality, as the effective date is usually specified in the product definition, so it may only need to be specified as part of the PriceQuantity in an increase/decrease scenario for an existing trade.- Specified by:
getEffectiveDatein interfacePriceQuantity
-
getMeta
@RosettaAttribute("meta") @RuneAttribute("meta") @RuneMetaType public com.rosetta.model.metafields.MetaFields getMeta()- Specified by:
getMetain interfacecom.rosetta.model.lib.GlobalKey- Specified by:
getMetain interfacePriceQuantity
-
build
Description copied from interface:PriceQuantityBuild Methods- Specified by:
buildin interfacePriceQuantity- Specified by:
buildin interfacecom.rosetta.model.lib.RosettaModelObject
-
toBuilder
- Specified by:
toBuilderin interfacePriceQuantity- Specified by:
toBuilderin interfacecom.rosetta.model.lib.RosettaModelObject
-
setBuilderFields
-
equals
-
hashCode
public int hashCode() -
toString
-