| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides com. |
| public String | getCurrencyCode()
Overrides com. |
| public String | getName(ULocale
locale in which to display currency locale, int selector for which kind of name to return.
The nameStyle should be SYMBOL_NAME, NARROW_SYMBOL_NAME,
or LONG_NAME. Otherwise, throw IllegalArgumentException. nameStyle, boolean[] isChoiceFormat[0] is always set to false, or isChoiceFormat can be null;
display names are static strings;
since ICU 4.4, ChoiceFormat patterns are no longer supported isChoiceFormat)Overrides com. |
| public String | getName(ULocale
locale in which to display currency locale, int selector for which kind of name to return nameStyle, String plural count string for this locale pluralCount, boolean[] isChoiceFormat[0] is always set to false, or isChoiceFormat can be null;
display names are static strings;
since ICU 4.4, ChoiceFormat patterns are no longer supported isChoiceFormat)Overrides com. |
| public int | hashCode()
Overrides com. |
| public static Currency |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| symbol1 | back to summary |
|---|---|
| private String symbol1 | |
| symbol2 | back to summary |
|---|---|
| private String symbol2 | |
| CustomSymbolCurrency | back to summary |
|---|---|
| public CustomSymbolCurrency(String isoCode, String currency1Sym, String currency2Sym) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides com. Doc from com. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getCurrencyCode | back to summary |
|---|---|
| public String getCurrencyCode() Overrides com. Doc from com. Returns the ISO 4217 3-letter code for this currency object.
| |
| getName | back to summary |
|---|---|
| public String getName(ULocale locale, int nameStyle, boolean[] isChoiceFormat) Overrides com. Doc from com. Returns the display name for the given currency in the given locale. For example, the display name for the USD currency object in the en_US locale is "$".
| |
| getName | back to summary |
|---|---|
| public String getName(ULocale locale, int nameStyle, String pluralCount, boolean[] isChoiceFormat) Overrides com. Doc from com. Returns the display name for the given currency in the given locale. For example, the SYMBOL_NAME for the USD currency object in the en_US locale is "$". The PLURAL_LONG_NAME for the USD currency object when the currency amount is plural is "US dollars", such as in "3.00 US dollars"; while the PLURAL_LONG_NAME for the USD currency object when the currency amount is singular is "US dollar", such as in "1.00 US dollar".
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides com. Doc from com. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| resolve | back to summary |
|---|---|
| public static Currency resolve(Currency currency, ULocale locale, DecimalFormatSymbols symbols) | |