Top Inners Fields Constructors Methods
com.ibm.icu.impl

public Class CurrencyData

extends Object
Class Inheritance
Imports
java.util.Collections, .Map, com.ibm.icu.text.CurrencyDisplayNames, .DecimalFormatSymbols, com.ibm.icu.util.ULocale

Nested and Inner Type Summary

Modifier and TypeClass and Description
public abstract static class
public static interface
public static class
public static class
public static class

Field Summary

Modifier and TypeField and Description
public static final CurrencyData.CurrencyDisplayInfoProvider

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

providerback to summary
public static final CurrencyData.CurrencyDisplayInfoProvider provider

Constructor Detail

CurrencyDataback to summary
private CurrencyData()
com.ibm.icu.impl back to summary

public abstract Class CurrencyData.CurrencyDisplayInfo

extends CurrencyDisplayNames
Class Inheritance
Known Direct Subclasses
com.ibm.icu.impl.CurrencyData.DefaultInfo, com.ibm.icu.impl.ICUCurrencyDisplayInfoProvider.ICUCurrencyDisplayInfo

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract CurrencyData.CurrencyFormatInfo
public abstract CurrencyData.CurrencySpacingInfo
public abstract Map<String, String>
Inherited from com.ibm.icu.text.CurrencyDisplayNames:
getFormalSymbolgetInstancegetInstancegetInstancegetInstancegetNamegetNarrowSymbolgetPluralNamegetSymbolgetULocalegetVariantSymbolhasDatanameMapsymbolMap

Constructor Detail

CurrencyDisplayInfoback to summary
public CurrencyDisplayInfo()

Method Detail

getFormatInfoback to summary
public abstract CurrencyData.CurrencyFormatInfo getFormatInfo(String isoCode)
getSpacingInfoback to summary
public abstract CurrencyData.CurrencySpacingInfo getSpacingInfo()
getUnitPatternsback to summary
public abstract Map<String, String> getUnitPatterns()
com.ibm.icu.impl back to summary

public Interface CurrencyData.CurrencyDisplayInfoProvider

Known Direct Implementers
com.ibm.icu.impl.ICUCurrencyDisplayInfoProvider

Method Summary

Modifier and TypeMethod and Description
public CurrencyData.CurrencyDisplayInfo
getInstance(ULocale locale, boolean withFallback)

public boolean

Method Detail

getInstanceback to summary
public CurrencyData.CurrencyDisplayInfo getInstance(ULocale locale, boolean withFallback)
hasDataback to summary
public boolean hasData()
com.ibm.icu.impl back to summary

public final Class CurrencyData.CurrencyFormatInfo

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public final String
public final String
public final String
public final String

Constructor Summary

AccessConstructor and Description
public
CurrencyFormatInfo(String isoCode, String currencyPattern, String monetarySeparator, String monetaryGroupingSeparator)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

currencyPatternback to summary
public final String currencyPattern
isoCodeback to summary
public final String isoCode
monetaryDecimalSeparatorback to summary
public final String monetaryDecimalSeparator
monetaryGroupingSeparatorback to summary
public final String monetaryGroupingSeparator

Constructor Detail

CurrencyFormatInfoback to summary
public CurrencyFormatInfo(String isoCode, String currencyPattern, String monetarySeparator, String monetaryGroupingSeparator)
com.ibm.icu.impl back to summary

public final Class CurrencyData.CurrencySpacingInfo

extends Object
Class Inheritance

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
public static enum

Field Summary

Modifier and TypeField and Description
public static final CurrencyData.CurrencySpacingInfo
private static final String
private static final String
private static final String
public boolean
public boolean
private final String[][]

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public String[]
public String[]
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEFAULTback to summary
public static final CurrencyData.CurrencySpacingInfo DEFAULT
DEFAULT_CTX_MATCHback to summary
private static final String DEFAULT_CTX_MATCH
DEFAULT_CUR_MATCHback to summary
private static final String DEFAULT_CUR_MATCH
DEFAULT_INSERTback to summary
private static final String DEFAULT_INSERT
hasAfterCurrencyback to summary
public boolean hasAfterCurrency
hasBeforeCurrencyback to summary
public boolean hasBeforeCurrency
symbolsback to summary
private final String[][] symbols

Constructor Detail

CurrencySpacingInfoback to summary
public CurrencySpacingInfo()
CurrencySpacingInfoback to summary
public CurrencySpacingInfo(String... strings)

Method Detail

getAfterSymbolsback to summary
public String[] getAfterSymbols()
getBeforeSymbolsback to summary
public String[] getBeforeSymbols()
setSymbolIfNullback to summary
public void setSymbolIfNull(CurrencyData.CurrencySpacingInfo.SpacingType type, CurrencyData.CurrencySpacingInfo.SpacingPattern pattern, String value)
com.ibm.icu.impl back to summary

public final Enum CurrencyData.CurrencySpacingInfo.SpacingPattern

extends Enum<CurrencyData.CurrencySpacingInfo.SpacingPattern>
Class Inheritance

Constructor Summary

AccessConstructor and Description
private
private
SpacingPattern(int value)

Field Detail

COUNTback to summary
public static final CurrencyData.CurrencySpacingInfo.SpacingPattern COUNT
CURRENCY_MATCHback to summary
public static final CurrencyData.CurrencySpacingInfo.SpacingPattern CURRENCY_MATCH
INSERT_BETWEENback to summary
public static final CurrencyData.CurrencySpacingInfo.SpacingPattern INSERT_BETWEEN
SURROUNDING_MATCHback to summary
public static final CurrencyData.CurrencySpacingInfo.SpacingPattern SURROUNDING_MATCH

Constructor Detail

SpacingPatternback to summary
private SpacingPattern()
SpacingPatternback to summary
private SpacingPattern(int value)

Method Detail

valueOfback to summary
public static CurrencyData.CurrencySpacingInfo.SpacingPattern valueOf(String name)
valuesback to summary
public static CurrencyData.CurrencySpacingInfo.SpacingPattern[] values()
com.ibm.icu.impl back to summary

public final Enum CurrencyData.CurrencySpacingInfo.SpacingType

extends Enum<CurrencyData.CurrencySpacingInfo.SpacingType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final CurrencyData.CurrencySpacingInfo.SpacingType
public static final CurrencyData.CurrencySpacingInfo.SpacingType
public static final CurrencyData.CurrencySpacingInfo.SpacingType

Constructor Summary

AccessConstructor and Description
private

Field Detail

AFTERback to summary
public static final CurrencyData.CurrencySpacingInfo.SpacingType AFTER
BEFOREback to summary
public static final CurrencyData.CurrencySpacingInfo.SpacingType BEFORE
COUNTback to summary
public static final CurrencyData.CurrencySpacingInfo.SpacingType COUNT

Constructor Detail

SpacingTypeback to summary
private SpacingType()

Method Detail

valueOfback to summary
public static CurrencyData.CurrencySpacingInfo.SpacingType valueOf(String name)
valuesback to summary
public static CurrencyData.CurrencySpacingInfo.SpacingType[] values()
com.ibm.icu.impl back to summary

public Class CurrencyData.DefaultInfo

extends CurrencyDisplayInfo
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final boolean
private static final CurrencyData.CurrencyDisplayInfo
private static final CurrencyData.CurrencyDisplayInfo

Constructor Summary

AccessConstructor and Description
private
DefaultInfo(boolean fallback)

Method Summary

Modifier and TypeMethod and Description
public String
getFormalSymbol(String
the three-letter ISO code.
isoCode
)

Implements abstract com.ibm.icu.text.CurrencyDisplayNames.getFormalSymbol.

Returns the formal symbol for the currency with the provided ISO code.
public CurrencyData.CurrencyFormatInfo
public String
getName(String
the three-letter ISO code
isoCode
)

Implements abstract com.ibm.icu.text.CurrencyDisplayNames.getName.

Returns the 'long name' for the currency with the provided ISO code.
public String
getNarrowSymbol(String
the three-letter ISO code.
isoCode
)

Implements abstract com.ibm.icu.text.CurrencyDisplayNames.getNarrowSymbol.

Returns the narrow symbol for the currency with the provided ISO code.
public String
getPluralName(String
the three-letter ISO code
isoCode
,
String
the plural key, for example "one", "other"
pluralType
)

Implements abstract com.ibm.icu.text.CurrencyDisplayNames.getPluralName.

Returns a 'plural name' for the currency with the provided ISO code corresponding to the pluralKey.
public CurrencyData.CurrencySpacingInfo
public String
getSymbol(String
the three-letter ISO code.
isoCode
)

Implements abstract com.ibm.icu.text.CurrencyDisplayNames.getSymbol.

Returns the symbol for the currency with the provided ISO code.
public ULocale
getULocale()

Implements abstract com.ibm.icu.text.CurrencyDisplayNames.getULocale.

Returns the locale used to determine how to translate the currency names.
public Map<String, String>
public String
getVariantSymbol(String
the three-letter ISO code.
isoCode
)

Implements abstract com.ibm.icu.text.CurrencyDisplayNames.getVariantSymbol.

Returns the variant symbol for the currency with the provided ISO code.
public static final CurrencyData.CurrencyDisplayInfo
getWithFallback(boolean fallback)

public Map<String, String>
nameMap()

Implements abstract com.ibm.icu.text.CurrencyDisplayNames.nameMap.

Returns a mapping from localized names (standard and plural) to currency codes.
public Map<String, String>
symbolMap()

Implements abstract com.ibm.icu.text.CurrencyDisplayNames.symbolMap.

Returns a mapping from localized symbols and currency codes to currency codes.

Field Detail

fallbackback to summary
private final boolean fallback
FALLBACK_INSTANCEback to summary
private static final CurrencyData.CurrencyDisplayInfo FALLBACK_INSTANCE
NO_FALLBACK_INSTANCEback to summary
private static final CurrencyData.CurrencyDisplayInfo NO_FALLBACK_INSTANCE

Constructor Detail

DefaultInfoback to summary
private DefaultInfo(boolean fallback)

Method Detail

getFormalSymbolback to summary
public String getFormalSymbol(String isoCode)

Implements abstract com.ibm.icu.text.CurrencyDisplayNames.getFormalSymbol.

Doc from com.ibm.icu.text.CurrencyDisplayNames.getFormalSymbol.

Returns the formal symbol for the currency with the provided ISO code.

The formal currency symbol is similar to the regular currency symbol, but it always takes the form used in formal settings such as banking; for example, "NT$" instead of "$" for TWD in zh-TW.

If there is no data for this symbol, substitutes the default symbol, or returns null if noSubstitute was set in the factory method.

Parameters
isoCode:String

the three-letter ISO code.

Returns:String

the formal symbol.

Annotations
@Override
getFormatInfoback to summary
public CurrencyData.CurrencyFormatInfo getFormatInfo(String isoCode)

Implements abstract com.ibm.icu.impl.CurrencyData.CurrencyDisplayInfo.getFormatInfo.

Annotations
@Override
getNameback to summary
public String getName(String isoCode)

Implements abstract com.ibm.icu.text.CurrencyDisplayNames.getName.

Doc from com.ibm.icu.text.CurrencyDisplayNames.getName.

Returns the 'long name' for the currency with the provided ISO code. If there is no data for the ISO code, substitutes isoCode, or returns null if noSubstitute was set in the factory method.

Parameters
isoCode:String

the three-letter ISO code

Returns:String

the display name

Annotations
@Override
getNarrowSymbolback to summary
public String getNarrowSymbol(String isoCode)

Implements abstract com.ibm.icu.text.CurrencyDisplayNames.getNarrowSymbol.

Doc from com.ibm.icu.text.CurrencyDisplayNames.getNarrowSymbol.

Returns the narrow symbol for the currency with the provided ISO code.

The narrow currency symbol is similar to the regular currency symbol, but it always takes the shortest form; for example, "$" instead of "US$" for USD in en-CA.

If there is no data for this symbol, substitutes the default symbol, or returns null if noSubstitute was set in the factory method.

Parameters
isoCode:String

the three-letter ISO code.

Returns:String

the narrow symbol.

Annotations
@Override
getPluralNameback to summary
public String getPluralName(String isoCode, String pluralType)

Implements abstract com.ibm.icu.text.CurrencyDisplayNames.getPluralName.

Doc from com.ibm.icu.text.CurrencyDisplayNames.getPluralName.

Returns a 'plural name' for the currency with the provided ISO code corresponding to the pluralKey. If there is no data for the ISO code, substitutes isoCode or returns null. If there is data for the ISO code but no data for the plural key, substitutes the 'other' value (and failing that the isoCode) or returns null.

Parameters
isoCode:String

the three-letter ISO code

pluralType:String

the plural key, for example "one", "other"

Returns:String

the display name

Annotations
@Override
getSpacingInfoback to summary
public CurrencyData.CurrencySpacingInfo getSpacingInfo()

Implements abstract com.ibm.icu.impl.CurrencyData.CurrencyDisplayInfo.getSpacingInfo.

Annotations
@Override
getSymbolback to summary
public String getSymbol(String isoCode)

Implements abstract com.ibm.icu.text.CurrencyDisplayNames.getSymbol.

Doc from com.ibm.icu.text.CurrencyDisplayNames.getSymbol.

Returns the symbol for the currency with the provided ISO code.

If there is no data for this symbol, substitutes isoCode, or returns null if noSubstitute was set in the factory method.

Parameters
isoCode:String

the three-letter ISO code.

Returns:String

the symbol.

Annotations
@Override
getULocaleback to summary
public ULocale getULocale()

Implements abstract com.ibm.icu.text.CurrencyDisplayNames.getULocale.

Doc from com.ibm.icu.text.CurrencyDisplayNames.getULocale.

Returns the locale used to determine how to translate the currency names. This is not necessarily the same locale passed to getInstance(ULocale).

Returns:ULocale

the display locale

Annotations
@Override
getUnitPatternsback to summary
public Map<String, String> getUnitPatterns()

Implements abstract com.ibm.icu.impl.CurrencyData.CurrencyDisplayInfo.getUnitPatterns.

Annotations
@Override
getVariantSymbolback to summary
public String getVariantSymbol(String isoCode)

Implements abstract com.ibm.icu.text.CurrencyDisplayNames.getVariantSymbol.

Doc from com.ibm.icu.text.CurrencyDisplayNames.getVariantSymbol.

Returns the variant symbol for the currency with the provided ISO code.

The variant symbol for a currency is an alternative symbol that is not necessarily as widely used as the regular symbol.

If there is no data for variant symbol, substitutes the default symbol, or returns null if noSubstitute was set in the factory method.

Parameters
isoCode:String

the three-letter ISO code.

Returns:String

the variant symbol.

Annotations
@Override
getWithFallbackback to summary
public static final CurrencyData.CurrencyDisplayInfo getWithFallback(boolean fallback)
nameMapback to summary
public Map<String, String> nameMap()

Implements abstract com.ibm.icu.text.CurrencyDisplayNames.nameMap.

Doc from com.ibm.icu.text.CurrencyDisplayNames.nameMap.

Returns a mapping from localized names (standard and plural) to currency codes. The returned map is unmodifiable.

Returns:Map<String, String>

the map

Annotations
@Override
symbolMapback to summary
public Map<String, String> symbolMap()

Implements abstract com.ibm.icu.text.CurrencyDisplayNames.symbolMap.

Doc from com.ibm.icu.text.CurrencyDisplayNames.symbolMap.

Returns a mapping from localized symbols and currency codes to currency codes. The returned map is unmodifiable.

Returns:Map<String, String>

the map

Annotations
@Override