public interface CurrencyConversionService
Modifier and Type | Method and Description |
---|---|
Money |
convertCurrency(Money source,
Currency destinationCurrency,
int destinationScale)
Converts the given Money into the destination.
|
Money convertCurrency(Money source, Currency destinationCurrency, int destinationScale)
source.getCurrency()
source
- - the Money to convertdestinationCurrency
- - which Currency to convert todestinationScale
- - the scale that the result will be in. If zero, this defaults to the scale of source
and if that is zero, defaults to BankersRounding.DEFAULT_SCALE
Copyright © 2022. All rights reserved.