Class PriceComposite.PriceCompositeImpl

java.lang.Object
cdm.observable.asset.PriceComposite.PriceCompositeImpl
All Implemented Interfaces:
PriceComposite, com.rosetta.model.lib.RosettaModelObject
Enclosing interface:
PriceComposite

public static class PriceComposite.PriceCompositeImpl extends Object implements PriceComposite
Immutable Implementation of PriceComposite
  • Constructor Details

  • Method Details

    • getBaseValue

      @RosettaAttribute(value="baseValue", isRequired=true) @RuneAttribute(value="baseValue", isRequired=true) public BigDecimal getBaseValue()
      Description copied from interface: PriceComposite
      The 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:
      getBaseValue in interface PriceComposite
    • getOperand

      @RosettaAttribute(value="operand", isRequired=true) @RuneAttribute(value="operand", isRequired=true) public BigDecimal getOperand()
      Description copied from interface: PriceComposite
      The 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:
      getOperand in interface PriceComposite
    • getArithmeticOperator

      @RosettaAttribute(value="arithmeticOperator", isRequired=true) @RuneAttribute(value="arithmeticOperator", isRequired=true) public ArithmeticOperationEnum getArithmeticOperator()
      Description copied from interface: PriceComposite
      Specifies the arithmetic operator via an enumeration.
      Specified by:
      getArithmeticOperator in interface PriceComposite
    • getOperandType

      @RosettaAttribute("operandType") @RuneAttribute("operandType") public PriceOperandEnum getOperandType()
      Description copied from interface: PriceComposite
      Optionally qualifies the type of operand: e.g. accrued or forward point.
      Specified by:
      getOperandType in interface PriceComposite
    • build

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

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

      protected void setBuilderFields(PriceComposite.PriceCompositeBuilder 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