public class JDKCurrencyProvider
extends java.lang.Object
implements javax.money.spi.CurrencyProviderSpi
CurrencyUnit based on the using the JDK's
MoneyCurrency, but also extendable using a Builder instance.| Constructor and Description |
|---|
JDKCurrencyProvider() |
| Modifier and Type | Method and Description |
|---|---|
javax.money.CurrencyUnit |
getCurrencyUnit(java.util.Locale locale)
Return a (current)
CurrencyUnit matching the given (country)
Locale. |
javax.money.CurrencyUnit |
getCurrencyUnit(java.lang.String currencyCode)
Return a (current)
CurrencyUnit matching the given currency code. |
public javax.money.CurrencyUnit getCurrencyUnit(java.util.Locale locale)
javax.money.spi.CurrencyProviderSpiCurrencyUnit matching the given (country)
Locale.getCurrencyUnit in interface javax.money.spi.CurrencyProviderSpilocale - the country Locale. not null.CurrencyUnit, or null, if no such unit
is provided by this provider.public javax.money.CurrencyUnit getCurrencyUnit(java.lang.String currencyCode)
javax.money.spi.CurrencyProviderSpiCurrencyUnit matching the given currency code.getCurrencyUnit in interface javax.money.spi.CurrencyProviderSpicurrencyCode - the currency code. not null.CurrencyUnit, or null, if no such unit
is provided by this provider.