Class ExchangeRate
java.lang.Object
com.sportradar.mbs.sdk.entities.common.ExchangeRate
Represents an exchange rate between two currencies.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class for creating instances of the ExchangeRate class. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the currency code of the source currency.getRate()
Gets the exchange rate value.Gets the currency code of the target currency.static ExchangeRate.Builder
Creates a new instance of the ExchangeRate.Builder class.void
setFromCurrency
(String value) Sets the currency code of the source currency.void
setRate
(BigDecimal value) Sets the exchange rate value.void
setToCurrency
(String value) Sets the currency code of the target currency.
-
Constructor Details
-
ExchangeRate
public ExchangeRate()
-
-
Method Details
-
newBuilder
Creates a new instance of the ExchangeRate.Builder class.- Returns:
- A new instance of the ExchangeRate.Builder class.
-
getToCurrency
Gets the currency code of the target currency.- Returns:
- The currency code of the target currency.
-
setToCurrency
Sets the currency code of the target currency.- Parameters:
value
- The currency code of the target currency.
-
getRate
Gets the exchange rate value.- Returns:
- The exchange rate value.
-
setRate
Sets the exchange rate value.- Parameters:
value
- The exchange rate value.
-
getFromCurrency
Gets the currency code of the source currency.- Returns:
- The currency code of the source currency.
-
setFromCurrency
Sets the currency code of the source currency.- Parameters:
value
- The currency code of the source currency.
-