软件包 | 描述 |
---|---|
java.util |
包含集合框架、遗留的集合类、事件模型、日期和时间的设施、国际化和各种实用工具类(一个字符串标记,一个随机数发生器,和一位阵列)。
|
Modifier and Type | Method and Description |
---|---|
static Locale.Category |
Locale.Category.valueOf(String name)
返回此类型具有指定名称的枚举常量。
|
static Locale.Category[] |
Locale.Category.values()
返回一个数组包含该枚举类型的常量,它们的顺序声明。
|
Modifier and Type | Method and Description |
---|---|
static Locale |
Locale.getDefault(Locale.Category category)
获取默认的设置在这个java虚拟机实例指定类别的当前值。
|
static void |
Locale.setDefault(Locale.Category category, Locale newLocale)
设置在这个java虚拟机实例指定类别的默认区域设置。
|
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.