public static enum Locale.Category extends Enum<Locale.Category>
Locale.getDefault(Locale.Category)
,
Locale.setDefault(Locale.Category, Locale)
Enum Constant and Description |
---|
DISPLAY
用于表示显示用户界面的默认区域的类别。
|
FORMAT
用于表示格式化日期、数字和/或货币的默认区域设置的类别。
|
Modifier and Type | Method and Description |
---|---|
static Locale.Category |
valueOf(String name)
返回此类型具有指定名称的枚举常量。
|
static Locale.Category[] |
values()
返回一个数组包含该枚举类型的常量,它们的顺序声明。
|
public static final Locale.Category DISPLAY
public static final Locale.Category FORMAT
public static Locale.Category[] values()
对于(locale.category C:现场。范畴。values()) 系统,println(C);
public static Locale.Category valueOf(String name)
name
-定要返回的枚举的名称。
IllegalArgumentException
-如果这个枚举类型,也没有固定的具有指定名称
NullPointerException
-如果参数为空
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.