软件包 | 描述 |
---|---|
java.text |
提供用于处理独立于自然语言的方式处理文本、日期、数字和消息的类和接口。
|
java.util |
包含集合框架、遗留的集合类、事件模型、日期和时间的设施、国际化和各种实用工具类(一个字符串标记,一个随机数发生器,和一位阵列)。
|
Modifier and Type | Method and Description |
---|---|
Currency |
DecimalFormatSymbols.getCurrency()
获取这些decimalformatsymbols货币。
|
Currency |
NumberFormat.getCurrency()
获取格式化货币值时此数字格式所使用的货币。
|
Currency |
DecimalFormat.getCurrency()
使用此十进制格式格式化货币值时所使用的货币。
|
Modifier and Type | Method and Description |
---|---|
void |
DecimalFormatSymbols.setCurrency(Currency currency)
集这些decimalformatsymbols货币。
|
void |
NumberFormat.setCurrency(Currency currency)
设置格式化货币值时此数字格式所使用的货币。
|
void |
DecimalFormat.setCurrency(Currency currency)
设置格式化货币值时此数字格式所使用的货币。
|
Modifier and Type | Method and Description |
---|---|
static Currency |
Currency.getInstance(Locale locale)
返回指定区域的国家
Currency 实例。
|
static Currency |
Currency.getInstance(String currencyCode)
返回指定货币代码的
Currency 实例。
|
Modifier and Type | Method and Description |
---|---|
static Set<Currency> |
Currency.getAvailableCurrencies()
获取可用货币的集合。
|
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.