public interface MonetaryAmountFormatProviderSpi
SPI (formatting) providing
MonetaryAmountFormat
instances.- Author:
- Anatole Tresch
-
Method Summary
Modifier and Type Method Description java.util.Collection<MonetaryAmountFormat>
getAmountFormats(AmountFormatQuery formatQuery)
Create a newMonetaryAmountFormat
for the given input.java.util.Set<java.lang.String>
getAvailableFormatNames()
Gets a list with available format names for this format provider.java.util.Set<java.util.Locale>
getAvailableLocales()
Gets a list with available locales for this format provider.default java.lang.String
getProviderName()
Access the provider's name.
-
Method Details
-
getProviderName
default java.lang.String getProviderName()Access the provider's name.- Returns:
- this provider's name, not null.
-
getAmountFormats
Create a newMonetaryAmountFormat
for the given input.- Parameters:
formatQuery
- TheAmountFormatContext
to be used.- Returns:
- An according
MonetaryAmountFormat
instance, ornull
, which delegates the request to subsequentMonetaryAmountFormatProviderSpi
instances registered.
-
getAvailableLocales
java.util.Set<java.util.Locale> getAvailableLocales()Gets a list with available locales for this format provider.- Returns:
- list of available locales, never null.
-
getAvailableFormatNames
java.util.Set<java.lang.String> getAvailableFormatNames()Gets a list with available format names for this format provider.- Returns:
- list of available formats, never null.
-