Class ExchangeRate
java.lang.Object
com.sportradar.mbs.sdk.entities.common.ExchangeRate
Represents an exchange rate between two currencies.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class for creating instances of the ExchangeRate class. -
Constructor Summary
Constructors -
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.BuilderCreates a new instance of the ExchangeRate.Builder class.voidsetFromCurrency(String value) Sets the currency code of the source currency.voidsetRate(BigDecimal value) Sets the exchange rate value.voidsetToCurrency(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.
-