Class ExchangeRate.Builder

java.lang.Object
com.sportradar.mbs.sdk.entities.common.ExchangeRate.Builder
Enclosing class:
ExchangeRate

public static class ExchangeRate.Builder extends Object
Builder class for creating instances of the ExchangeRate class.
  • Method Details

    • build

      public ExchangeRate build()
      Builds and returns the ExchangeRate instance.
      Returns:
      The ExchangeRate instance.
    • setToCurrency

      public ExchangeRate.Builder setToCurrency(String value)
      Sets the currency code of the target currency.
      Parameters:
      value - The currency code of the target currency.
      Returns:
      The Builder instance.
    • setRate

      public ExchangeRate.Builder setRate(BigDecimal value)
      Sets the exchange rate value.
      Parameters:
      value - The exchange rate value.
      Returns:
      The Builder instance.
    • setFromCurrency

      public ExchangeRate.Builder setFromCurrency(String value)
      Sets the currency code of the source currency.
      Parameters:
      value - The currency code of the source currency.
      Returns:
      The Builder instance.