public final class TestCurrencyProvider extends java.lang.Object implements CurrencyProviderSpi
| Constructor and Description |
|---|
TestCurrencyProvider() |
| Modifier and Type | Method and Description |
|---|---|
CurrencyUnit |
getCurrencyUnit(java.util.Locale locale)
Return a (current)
CurrencyUnit matching the given (country)
Locale. |
CurrencyUnit |
getCurrencyUnit(java.lang.String currencyCode)
Return a (current)
CurrencyUnit matching the given currency code. |
public CurrencyUnit getCurrencyUnit(java.lang.String currencyCode)
CurrencyProviderSpiCurrencyUnit matching the given currency code.getCurrencyUnit in interface CurrencyProviderSpicurrencyCode - the currency code. not null.CurrencyUnit, or null, if no such unit
is provided by this provider.public CurrencyUnit getCurrencyUnit(java.util.Locale locale)
CurrencyProviderSpiCurrencyUnit matching the given (country)
Locale.getCurrencyUnit in interface CurrencyProviderSpilocale - the country Locale. not null.CurrencyUnit, or null, if no such unit
is provided by this provider.