public enum TimeStyle extends java.lang.Enum<TimeStyle>
DateTimeBxArea| Enum Constant and Description |
|---|
AMPM_HH_MM
时间格式:AMPM HH:MM。
|
HH_MM_1
时间格式:HH:MM。
|
HH_MM_2
时间格式:HH时MM分。
|
HH_MM_AMPM
时间格式:HH:MM AMPM。
|
HH_MM_SS_1
时间格式:HH:MM:SS。
|
HH_MM_SS_2
时间格式:HH时MM分SS秒。
|
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
name |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
static TimeStyle |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimeStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeStyle AMPM_HH_MM
public static final TimeStyle HH_MM_1
public static final TimeStyle HH_MM_2
public static final TimeStyle HH_MM_AMPM
public static final TimeStyle HH_MM_SS_1
public static final TimeStyle HH_MM_SS_2
public java.lang.String toString()
toString in class java.lang.Enum<TimeStyle>public static TimeStyle valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static TimeStyle[] values()
for (TimeStyle c : TimeStyle.values()) System.out.println(c);