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