|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.icu.text.CurrencyDisplayNames
public abstract class CurrencyDisplayNames
Returns currency names localized for a locale.
Constructor Summary | |
---|---|
protected |
CurrencyDisplayNames()
Deprecated. This API is ICU internal only. |
Method Summary | |
---|---|
static CurrencyDisplayNames |
getInstance(ULocale locale)
Return an instance of CurrencyDisplayNames that provides information localized for display in the provided locale. |
abstract ULocale |
getLocale()
Returns the locale used to determine how to translate the currency names. |
abstract String |
getName(String isoCode)
Returns the 'long name' for the currency with the provided ISO code. |
abstract String |
getPluralName(String isoCode,
String pluralKey)
Returns a 'plural name' for the currency with the provided ISO code corresponding to the pluralKey. |
abstract String |
getSymbol(String isoCode)
Returns the symbol for the currency with the provided ISO code. |
static boolean |
hasData()
Returns true if currency display name data is available. |
abstract Map<String,String> |
nameMap()
Returns a mapping from localized names (standard and plural) to currency codes. |
abstract Map<String,String> |
symbolMap()
Returns a mapping from localized symbols and currency codes to currency codes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected CurrencyDisplayNames()
Method Detail |
---|
public static CurrencyDisplayNames getInstance(ULocale locale)
locale
- the locale into which to localize the names
public static boolean hasData()
public abstract ULocale getLocale()
getInstance(ULocale)
.
If hasData is false, returns ULocale.ROOT
.
public abstract String getSymbol(String isoCode)
isoCode
- the three-letter ISO code.
public abstract String getName(String isoCode)
isoCode
- the three-letter ISO code
public abstract String getPluralName(String isoCode, String pluralKey)
isoCode
- the three-letter ISO codepluralKey
- the plural key, for example "one", "other"
PluralRules
public abstract Map<String,String> symbolMap()
public abstract Map<String,String> nameMap()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |