MonetaryFormats.DefaultMonetaryFormatsSingletonSpipublic interface MonetaryFormatsSingletonSpi
MonetaryFormats.
Implementations of this interface must be thread-safe.
| Modifier and Type | Method | Description |
|---|---|---|
default MonetaryAmountFormat |
getAmountFormat(String formatName,
String... providers) |
Access the default
MonetaryAmountFormat given a Locale. |
default MonetaryAmountFormat |
getAmountFormat(Locale locale,
String... providers) |
Access the default
MonetaryAmountFormat given a Locale. |
default MonetaryAmountFormat |
getAmountFormat(AmountFormatQuery formatQuery) |
Access an
MonetaryAmountFormat given a .AmountFormatQuery. |
Collection<MonetaryAmountFormat> |
getAmountFormats(AmountFormatQuery formatQuery) |
Access all
MonetaryAmountFormat instances matching the given .AmountFormatQuery. |
Set<Locale> |
getAvailableLocales(String... providers) |
Get all available locales.
|
List<String> |
getDefaultProviderChain() |
Get the default provider chain, identified by the unique provider names in order as evaluated and used.
|
Set<String> |
getProviderNames() |
Get the names of the currently registered format providers.
|
default boolean |
isAvailable(Locale locale,
String... providers) |
Checks if a
MonetaryAmountFormat is available given a .AmountFormatQuery. |
default boolean |
isAvailable(AmountFormatQuery formatQuery) |
Checks if a
MonetaryAmountFormat is available given a .AmountFormatQuery. |
Set<Locale> getAvailableLocales(String... providers)
MonetaryAmountFormatProviderSpi.getAvailableLocales().providers - The (optional) providers to be used, ordered correspondingly.null.Collection<MonetaryAmountFormat> getAmountFormats(AmountFormatQuery formatQuery)
MonetaryAmountFormat instances matching the given .AmountFormatQuery.formatQuery - The format query defining the requirements of the formatter.MonetaryAmountFormat instances, never nullSet<String> getProviderNames()
List<String> getDefaultProviderChain()
default MonetaryAmountFormat getAmountFormat(AmountFormatQuery formatQuery)
MonetaryAmountFormat given a .AmountFormatQuery.formatQuery - The format query defining the requirements of the formatter.MonetaryAmountFormatMonetaryException - if no registered .MonetaryAmountFormatProviderSpi can provide a
corresponding MonetaryAmountFormat instance.default boolean isAvailable(AmountFormatQuery formatQuery)
MonetaryAmountFormat is available given a .AmountFormatQuery.formatQuery - The format query defining the requirements of the formatter.MonetaryAmountFormat is matching the query.default boolean isAvailable(Locale locale, String... providers)
MonetaryAmountFormat is available given a .AmountFormatQuery.locale - the target Locale, not null.providers - The (optional) providers to be used, ordered correspondingly.MonetaryAmountFormat is matching the query.default MonetaryAmountFormat getAmountFormat(Locale locale, String... providers)
MonetaryAmountFormat given a Locale.locale - the target Locale, not null.providers - The (optional) providers to be used, ordered correspondingly.MonetaryAmountFormatMonetaryException - if no registered MonetaryAmountFormatProviderSpi can provide a
corresponding MonetaryAmountFormat instance.default MonetaryAmountFormat getAmountFormat(String formatName, String... providers)
MonetaryAmountFormat given a Locale.formatName - the target format name, not null.providers - The (optional) providers to be used, ordered correspondingly.MonetaryAmountFormatMonetaryException - if no registered MonetaryAmountFormatProviderSpi can provide a
corresponding MonetaryAmountFormat instance.Copyright © 2012–2018 JSR 354 - Expert Group. All rights reserved.