MonetaryAmountFormat instances.
This class is thread-safe.
| Modifier and Type | Class and Description |
|---|---|
| public static class | MonetaryFormats.DefaultMonetaryFormatsSingletonSpi
This class models the singleton accessor for |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static MonetaryAmountFormat | Returns: the matchingMonetaryAmountFormatthe target locale, String... Locale, not null.The providers to be queried, if not set the providers as defined by #getDefaultCurrencyProviderChain()
are queried. providers)Access the default |
| public static MonetaryAmountFormat | Returns: the matchingMonetaryAmountFormatthe required formatQuery)AmountFormatQuery, not null. If the query does not define
any explicit provider chain, the providers as defined by #getDefaultCurrencyProviderChain()
are used.Access the default |
| public static MonetaryAmountFormat | Returns: the matchingMonetaryAmountFormatthe target format name, not formatName, String... null.The providers to be used, if not set the providers as defined by #getDefaultCurrencyProviderChain() are
used. providers)Access the a |
| public static Collection | Returns: the matchingMonetaryAmountFormatthe required formatQuery)AmountFormatQuery, not null. If the query does not define
any explicit provider chain, the providers as defined by #getDefaultCurrencyProviderChain()
are used.Access all |
| public static Set | Returns: all available locales, nevernull.The providers to be used, if not set the providers as defined by #getDefaultCurrencyProviderChain() are
used. providers)Get all available locales. |
| public static List | Returns: the default provider chain, never null.Get the default provider chain, identified by the unique provider names in order as evaluated and used. |
| public static Collection | Returns: the provider names, never null.Get the names of the currently registered format providers. |
| private static MonetaryFormatsSingletonSpi | |
| public static boolean | Returns: true, if a correspondingMonetaryAmountFormat is accessible.the target locale, String... Locale, not null.The providers to be queried, if not set the providers as defined by #getDefaultCurrencyProviderChain()
are queried. providers)Checks if a |
| public static boolean | Returns: true, if a correspondingMonetaryAmountFormat is accessible.the required formatQuery)AmountFormatQuery, not null. If the query does not define
any explicit provider chain, the providers as defined by #getDefaultCurrencyProviderChain()
are used.Checks if a |
| private static MonetaryFormatsSingletonSpi | Returns: the instance of MonetaryFormatsSingletonSpi to be used by this singleton.Loads the SPI backing bean. |
| MonetaryFormats | back to summary |
|---|---|
| private MonetaryFormats() Private singleton constructor. | |
| getAmountFormat | back to summary |
|---|---|
| public static MonetaryAmountFormat getAmountFormat(Locale locale, String... providers) Access the default
| |
| getAmountFormat | back to summary |
|---|---|
| public static MonetaryAmountFormat getAmountFormat(AmountFormatQuery formatQuery) Access the default
| |
| getAmountFormat | back to summary |
|---|---|
| public static MonetaryAmountFormat getAmountFormat(String formatName, String... providers) Access the a
| |
| getAmountFormats | back to summary |
|---|---|
| public static Collection Access all
| |
| getAvailableLocales | back to summary |
|---|---|
| public static Set Get all available locales. This equals to | |
| getDefaultFormatProviderChain | back to summary |
|---|---|
| public static List Get the default provider chain, identified by the unique provider names in order as evaluated and used. | |
| getFormatProviderNames | back to summary |
|---|---|
| public static Collection Get the names of the currently registered format providers.
| |
| getMonetaryFormatsSpi | back to summary |
|---|---|
| private static MonetaryFormatsSingletonSpi getMonetaryFormatsSpi() | |
| isAvailable | back to summary |
|---|---|
| public static boolean isAvailable(Locale locale, String... providers) Checks if a
| |
| isAvailable | back to summary |
|---|---|
| public static boolean isAvailable(AmountFormatQuery formatQuery) Checks if a
| |
| loadMonetaryFormatsSingletonSpi | back to summary |
|---|---|
| private static MonetaryFormatsSingletonSpi loadMonetaryFormatsSingletonSpi() Loads the SPI backing bean.
| |
javax.money.format.MonetaryAmountFormat instances.
This class is thread-safe.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Collection | Returns: the correspondingjavax.money.format.MonetaryAmountFormatThe format query defining the requirements of the formatter. formatQuery)Implements javax. javax.money.format.MonetaryAmountFormat given a .AmountFormatContext.
|
| public Set | Returns: all available locales, nevernull.The (optional) providers to be used, ordered correspondingly. providerNames)Implements javax. |
| public List | Returns: the default provider chain, never null.Implements javax. |
| public Set | getProviderNames()
Implements javax. |
| private Collection | |
| private Map |
| DefaultMonetaryFormatsSingletonSpi | back to summary |
|---|---|
| public DefaultMonetaryFormatsSingletonSpi() | |
| getAmountFormats | back to summary |
|---|---|
| public Collection Implements javax. Access an
| |
| getAvailableLocales | back to summary |
|---|---|
| public Set Implements javax. Get all available locales. This equals to
| |
| getDefaultProviderChain | back to summary |
|---|---|
| public List Implements javax. This default implementation simply returns all providers defined in arbitrary order. | |
| getProviderNames | back to summary |
|---|---|
| public Set Implements javax. Doc from javax. Get the names of the currently registered format providers. | |
| getSpis | back to summary |
|---|---|
| private Collection | |
| getSpisAsMap | back to summary |
|---|---|
| private Map | |