Package | Description |
---|---|
javax.money.convert |
Defines the monetary currency conversion API.
|
Modifier and Type | Method and Description |
---|---|
ExchangeRate.Builder |
ExchangeRate.Builder.setBase(CurrencyUnit base)
Sets the base
CurrencyUnit |
ExchangeRate.Builder |
ExchangeRate.Builder.setContext(ConversionContext conversionContext)
Sets the provider to be applied.
|
ExchangeRate.Builder |
ExchangeRate.Builder.setFactor(java.math.BigDecimal factor)
Sets the conversion factor, as the factor
base * factor = target . |
ExchangeRate.Builder |
ExchangeRate.Builder.setFactor(java.lang.Number factor)
Sets the conversion factor, as the factor
base * factor = target . |
ExchangeRate.Builder |
ExchangeRate.Builder.setRate(ExchangeRate rate)
Initialize the
ExchangeRate.Builder with an ExchangeRate . |
ExchangeRate.Builder |
ExchangeRate.Builder.setRateChain(ExchangeRate... exchangeRates)
Sets the
ExchangeRate chain. |
ExchangeRate.Builder |
ExchangeRate.Builder.setTerm(CurrencyUnit term)
Sets the terminating (target)
CurrencyUnit |
ExchangeRate.Builder |
ExchangeRate.toBuilder()
Create a
ExchangeRate.Builder based on the current rate instance. |