public abstract class CurrencyNameProvider extends LocaleServiceProvider
Currency
类名。注意,货币符号是名称的确定在
LocaleServiceProvider
规范中描述的行为时。
Modifier | Constructor and Description |
---|---|
protected |
CurrencyNameProvider()
唯一的构造函数。
|
Modifier and Type | Method and Description |
---|---|
String |
getDisplayName(String currencyCode, Locale locale)
返回用于显示给用户的货币的名称。
|
abstract String |
getSymbol(String currencyCode, Locale locale)
获取指定的区域指定货币代码的符号。
|
getAvailableLocales, isSupportedLocale
protected CurrencyNameProvider()
public abstract String getSymbol(String currencyCode, Locale locale)
currencyCode
- ISO 4217货币代码,其中包括在A三个大写字母(U + 0041)和Z(U + 005a)
locale
-所需的现场
NullPointerException
-如果
currencyCode
或
locale
是空的
IllegalArgumentException
-如果
currencyCode
不在三个大写字母的形式,或
locale
不一的地方
getAvailableLocales()
归来。
Currency.getSymbol(java.util.Locale)
public String getDisplayName(String currencyCode, Locale locale)
currencyCode
- ISO 4217货币代码,其中包括在A三个大写字母(U + 0041)和Z(U + 005a)
locale
-所需的现场
IllegalArgumentException
-如果
currencyCode
不在三个大写字母的形式,或
locale
不一的地方
getAvailableLocales()
归来。
NullPointerException
-如果
currencyCode
或
locale
是
null
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.