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

public static class PriceQuantity.PriceQuantityImpl extends Object implements PriceQuantity
Immutable Implementation of PriceQuantity
  • Constructor Details

  • Method Details

    • getPrice

      @RosettaAttribute("price") @RuneAttribute("price") @RuneScopedAttributeKey public List<? extends FieldWithMetaPriceSchedule> getPrice()
      Description copied from interface: PriceQuantity
      Specifies a price to be used for trade amounts and other purposes.
      Specified by:
      getPrice in interface PriceQuantity
    • getQuantity

      @RosettaAttribute("quantity") @RuneAttribute("quantity") @RuneScopedAttributeKey public List<? extends FieldWithMetaNonNegativeQuantitySchedule> getQuantity()
      Description copied from interface: PriceQuantity
      Specifies a quantity to be associated with an event, for example a trade amount.
      Specified by:
      getQuantity in interface PriceQuantity
    • getObservable

      @RosettaAttribute("observable") @RuneAttribute("observable") public Observable getObservable()
      Description copied from interface: PriceQuantity
      Specifies 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:
      getObservable in interface PriceQuantity
    • getBuyerSeller

      @RosettaAttribute("buyerSeller") @RuneAttribute("buyerSeller") public BuyerSeller getBuyerSeller()
      Description copied from interface: PriceQuantity
      Defines 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:
      getBuyerSeller in interface PriceQuantity
    • getSettlementTerms

      @RosettaAttribute("settlementTerms") @RuneAttribute("settlementTerms") public SettlementTerms getSettlementTerms()
      Description copied from interface: PriceQuantity
      Whether 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:
      getSettlementTerms in interface PriceQuantity
    • getEffectiveDate

      @RosettaAttribute("effectiveDate") @RuneAttribute("effectiveDate") public AdjustableOrRelativeDate getEffectiveDate()
      Description copied from interface: PriceQuantity
      Specifies 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:
      getEffectiveDate in interface PriceQuantity
    • getMeta

      @RosettaAttribute("meta") @RuneAttribute("meta") @RuneMetaType public com.rosetta.model.metafields.MetaFields getMeta()
      Specified by:
      getMeta in interface com.rosetta.model.lib.GlobalKey
      Specified by:
      getMeta in interface PriceQuantity
    • build

      public PriceQuantity build()
      Description copied from interface: PriceQuantity
      Build Methods
      Specified by:
      build in interface PriceQuantity
      Specified by:
      build in interface com.rosetta.model.lib.RosettaModelObject
    • toBuilder

      Specified by:
      toBuilder in interface PriceQuantity
      Specified by:
      toBuilder in interface com.rosetta.model.lib.RosettaModelObject
    • setBuilderFields

      protected void setBuilderFields(PriceQuantity.PriceQuantityBuilder builder)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object