public class TestAmountStyleProvider extends java.lang.Object implements AmountStyleProviderSpi
Constructor and Description |
---|
TestAmountStyleProvider() |
Modifier and Type | Method and Description |
---|---|
AmountStyle |
getAmountStyle(java.util.Locale locale)
Get an
AmountStyle for the given Locale . |
java.util.Set<java.util.Locale> |
getSupportedLocales()
Access the locales supported by this instance.
|
public java.util.Set<java.util.Locale> getSupportedLocales()
AmountStyleProviderSpi
getSupportedLocales
in interface AmountStyleProviderSpi
Locale
instances, never null
.public AmountStyle getAmountStyle(java.util.Locale locale)
AmountStyleProviderSpi
AmountStyle
for the given Locale
.getAmountStyle
in interface AmountStyleProviderSpi
locale
- The target Locale
, not null
.AmountStyle
instance, or null
, which delegates the
request to subsequent AmountStyleProviderSpi
instances registered.