Class ExchangeRate.Builder
java.lang.Object
com.sportradar.mbs.sdk.entities.common.ExchangeRate.Builder
- Enclosing class:
ExchangeRate
Builder class for creating instances of the ExchangeRate class.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds and returns the ExchangeRate instance.setFromCurrency
(String value) Sets the currency code of the source currency.setRate
(BigDecimal value) Sets the exchange rate value.setToCurrency
(String value) Sets the currency code of the target currency.
-
Method Details
-
build
Builds and returns the ExchangeRate instance.- Returns:
- The ExchangeRate instance.
-
setToCurrency
Sets the currency code of the target currency.- Parameters:
value
- The currency code of the target currency.- Returns:
- The Builder instance.
-
setRate
Sets the exchange rate value.- Parameters:
value
- The exchange rate value.- Returns:
- The Builder instance.
-
setFromCurrency
Sets the currency code of the source currency.- Parameters:
value
- The currency code of the source currency.- Returns:
- The Builder instance.
-