java.util.Currency into the
javax.money.Monetary singleton either by currency code, locale, or both.
| Modifier and Type | Field and Description |
|---|---|
| private static final Map | CURRENCY_UNITS
The currency units, identified by currency code. |
| private static final Map | CURRENCY_UNITS_BY_LOCALE
The currency units identified by Locale. |
| private static final Map | CURRENCY_UNITS_BY_NUMERIC_CODE
The currency units, identified by numeric code. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Set | Returns: the correspondingCurrencyUnit, or null, if no such unit
is provided by this provider.the currencyQuery)javax. containing the parameters determining the query. not null.Implements javax. Return a |
| public static CurrencyUnit | Returns: any unit instance registered previously by this instance, or null.the new currency to be registered, not null. currencyUnit)Registers a new currency unit under its currency code and potentially numeric code. |
| public static CurrencyUnit | Returns: any unit instance registered previously by this instance, or null.the new currency to be registered, not null. currencyUnit, Locale the Locale, not null. locale)Registers a new currency unit under the given Locale. |
| public static CurrencyUnit | Returns: any unit instance removed, or null.the currency code, not null. currencyCode)Removes a CurrencyUnit. |
| public static CurrencyUnit | Returns: any unit instance removed, or null.the Locale, not null. locale)Removes a CurrencyUnit. |
| public String |
| CURRENCY_UNITS | back to summary |
|---|---|
| private static final Map<String, CurrencyUnit> CURRENCY_UNITS The currency units, identified by currency code. | |
| CURRENCY_UNITS_BY_LOCALE | back to summary |
|---|---|
| private static final Map<Locale, CurrencyUnit> CURRENCY_UNITS_BY_LOCALE The currency units identified by Locale. | |
| CURRENCY_UNITS_BY_NUMERIC_CODE | back to summary |
|---|---|
| private static final Map<Integer, CurrencyUnit> CURRENCY_UNITS_BY_NUMERIC_CODE The currency units, identified by numeric code. | |
| ConfigurableCurrencyUnitProvider | back to summary |
|---|---|
| public ConfigurableCurrencyUnitProvider() | |
| getCurrencies | back to summary |
|---|---|
| public Set Implements javax. Return a
| |
| registerCurrencyUnit | back to summary |
|---|---|
| public static CurrencyUnit registerCurrencyUnit(CurrencyUnit currencyUnit) Registers a new currency unit under its currency code and potentially numeric code.
| |
| registerCurrencyUnit | back to summary |
|---|---|
| public static CurrencyUnit registerCurrencyUnit(CurrencyUnit currencyUnit, Locale locale) Registers a new currency unit under the given Locale.
| |
| removeCurrencyUnit | back to summary |
|---|---|
| public static CurrencyUnit removeCurrencyUnit(String currencyCode) Removes a CurrencyUnit.
| |
| removeCurrencyUnit | back to summary |
|---|---|
| public static CurrencyUnit removeCurrencyUnit(Locale locale) Removes a CurrencyUnit.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |