类的用途
java.util.Currency
使用 Currency 的包
包
描述
提供以独立于自然语言的方式处理文本、日期、数字和消息的类和接口。
包含集合框架、一些国际化支持类、服务加载器、属性、随机数生成、字符串解析和扫描类、base64 编码和解码、位数组和几个杂项实用程序类。
-
Currency 在 java.text 中的用法
修饰符和类型方法描述DecimalFormat.getCurrency()获取格式化货币值时此十进制格式使用的货币。DecimalFormatSymbols.getCurrency()获取这些 DecimalFormatSymbols 的货币。NumberFormat.getCurrency()获取格式化货币值时此数字格式使用的货币。修饰符和类型方法描述voidDecimalFormat.setCurrency(Currency currency) 设置格式化货币值时此数字格式使用的货币。voidDecimalFormatSymbols.setCurrency(Currency currency) 设置这些 DecimalFormatSymbols 的货币。voidNumberFormat.setCurrency(Currency currency) 设置格式化货币值时此数字格式使用的货币。 -
Currency 在 java.util 中的用法
修饰符和类型方法描述static CurrencyCurrency.getInstance(String currencyCode) 返回给定货币代码的Currency实例。static CurrencyCurrency.getInstance(Locale locale) 返回给定区域设置的国家/地区的Currency实例。