javax.money.Monetary that provides access to
different registered javax.money.spi.CurrencyProviderSpi instances.
Implementations of this interface must be thread safe.
| Modifier and Type | Method and Description |
|---|---|
| public Set | Returns: a set of all currencies found, never null.The currency query, not null. query)Access all currencies matching the given query. |
| public default Set | Returns: a collection of all known currencies, never null.the target locale, String... java.util.Locale, typically representing an ISO country,
not null.the (optional) specification of providers to consider. If not set (empty) the providers
as defined by #getDefaultCurrencyProviderChain() should be used. providers)Provide access to all currently known currencies. |
| public default Set | Returns: a collection of all known currencies, never null.the (optional) specification of providers to consider. If not set (empty) the providers
as defined by #getDefaultCurrencyProviderChain() should be used. providers)Provide access to all currently known currencies. |
| public default CurrencyUnit | Returns: the correspondingjavax.money.CurrencyUnit instance.the ISO currency code, not currencyCode, String... null.the (optional) specification of providers to consider. If not set (empty) the providers
as defined by #getDefaultCurrencyProviderChain() should be used. providers)Access a new instance based on the currency code. |
| public default CurrencyUnit | Returns: the correspondingjavax.money.CurrencyUnit instance.the ISO currency's country, not country, String... null.the (optional) specification of providers to consider. If not set (empty) the providers
as defined by #getDefaultCurrencyProviderChain() should be used. providers)Access a new instance based on the currency code. |
| public default CurrencyUnit | Returns: thejavax.money.CurrencyUnit found, never null.The currency query, not null. query)Access a single currency by query. |
| public List | Returns: the currencies returned by the given provider chain. If not provider names are provided the default provider chain configured injavamoney.properties is used.Access a list of the currently registered default providers. |
| public Set | Returns: the currencies returned by the given provider chain. If not provider names are provided the default provider chain configured injavamoney.properties is used.Access a list of the currently registered providers. |
| public default boolean | Returns: true if javax.money.spi.MonetaryCurrenciesSingletonSpi#getCurrency(String, String...)
would return a result for the given code.the currency code, not code, String... null.the (optional) specification of providers to consider. If not set (empty) the providers
as defined by #getDefaultCurrencyProviderChain() should be used. providers)Allows to check if a |
| public default boolean | Returns: true if getCurrencies(java.util.Locale, String...) would return a
non empty result for the given code.the target locale, String... java.util.Locale, not null.the (optional) specification of providers to consider. If not set (empty) the providers
as defined by #getDefaultCurrencyProviderChain() should be used. providers)Allows to check if a |
| getCurrencies | back to summary |
|---|---|
| public Set Access all currencies matching the given query.
| |
| getCurrencies | back to summary |
|---|---|
| public default Set Provide access to all currently known currencies.
| |
| getCurrencies | back to summary |
|---|---|
| public default Set Provide access to all currently known currencies.
| |
| getCurrency | back to summary |
|---|---|
| public default CurrencyUnit getCurrency(String currencyCode, String... providers) Access a new instance based on the currency code. Currencies are
available as provided by
| |
| getCurrency | back to summary |
|---|---|
| public default CurrencyUnit getCurrency(Locale country, String... providers) Access a new instance based on the currency code. Currencies are
available as provided by
| |
| getCurrency | back to summary |
|---|---|
| public default CurrencyUnit getCurrency(CurrencyQuery query) Access a single currency by query.
| |
| getDefaultProviderChain | back to summary |
|---|---|
| public List Access a list of the currently registered default providers. The default providers are used, when no provider names are passed by the caller.
| |
| getProviderNames | back to summary |
|---|---|
| public Set Access a list of the currently registered providers. The names can be used to
access subsets of the overall currency range by calling | |
| isCurrencyAvailable | back to summary |
|---|---|
| public default boolean isCurrencyAvailable(String code, String... providers) Allows to check if a
| |
| isCurrencyAvailable | back to summary |
|---|---|
| public default boolean isCurrencyAvailable(Locale locale, String... providers) Allows to check if a
| |