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)
CurrencyProviderSpi
CurrencyUnit
matching the given currency code.getCurrencyUnit
in interface CurrencyProviderSpi
currencyCode
- the currency code. not null.CurrencyUnit
, or null, if no such unit
is provided by this provider.public CurrencyUnit getCurrencyUnit(java.util.Locale locale)
CurrencyProviderSpi
CurrencyUnit
matching the given (country)
Locale
.getCurrencyUnit
in interface CurrencyProviderSpi
locale
- the country Locale
. not null.CurrencyUnit
, or null, if no such unit
is provided by this provider.