Create a new exchange rate bean.
Syntax
ExchangeRate
(
final String
fromCurrency
,
final String
toCurrency
,
final long
fromAmount
,
final long
toAmount
,
final BigDecimal
rate
)
Parameters
-
fromCurrency –
the source currency
-
toCurrency –
the target currency
-
fromAmount –
the source scaling amount
-
toAmount –
the target scaling amount
-
rate –
the exchange rate