Class FxRate.FxRateImpl

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

public static class FxRate.FxRateImpl extends Object implements FxRate
Immutable Implementation of FxRate
  • Constructor Details

  • Method Details

    • getQuotedCurrencyPair

      @RosettaAttribute(value="quotedCurrencyPair", isRequired=true) @RuneAttribute(value="quotedCurrencyPair", isRequired=true) public QuotedCurrencyPair getQuotedCurrencyPair()
      Description copied from interface: FxRate
      Defines the two currencies for an FX trade and the quotation relationship between the two currencies.
      Specified by:
      getQuotedCurrencyPair in interface FxRate
    • getRate

      @RosettaAttribute("rate") @RuneAttribute("rate") public BigDecimal getRate()
      Description copied from interface: FxRate
      The rate of exchange between the two currencies of the leg of a deal. Must be specified with a quote basis.
      Specified by:
      getRate in interface FxRate
    • build

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

      public FxRate.FxRateBuilder toBuilder()
      Specified by:
      toBuilder in interface FxRate
      Specified by:
      toBuilder in interface com.rosetta.model.lib.RosettaModelObject
    • setBuilderFields

      protected void setBuilderFields(FxRate.FxRateBuilder 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