public enum TimeStyle extends 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秒。
|
HH12_MM_1
时间格式:HH:MM。
|
HH12_MM_2
时间格式:HH时MM分。
|
HH12_MM_SS_1
时间格式:HH:MM:SS。
|
HH12_MM_SS_2
时间格式:HH时MM分SS秒。
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static TimeStyle |
valueOf(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 HH_MM_SS_1
public static final TimeStyle HH_MM_SS_2
public static final TimeStyle HH12_MM_SS_1
public static final TimeStyle HH12_MM_SS_2
public static final TimeStyle HH_MM_1
public static final TimeStyle HH_MM_2
public static final TimeStyle HH12_MM_1
public static final TimeStyle HH12_MM_2
public static final TimeStyle AMPM_HH_MM
public static final TimeStyle HH_MM_AMPM
public final String name
public static TimeStyle[] values()
for (TimeStyle c : TimeStyle.values()) System.out.println(c);
public static TimeStyle valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2020 onbon4j. All rights reserved.