Package com.ibm.icu.text
Enum DateFormat.HourCycle
- java.lang.Object
-
- java.lang.Enum<DateFormat.HourCycle>
-
- com.ibm.icu.text.DateFormat.HourCycle
-
- All Implemented Interfaces:
Serializable
,Comparable<DateFormat.HourCycle>
- Enclosing class:
- DateFormat
public static enum DateFormat.HourCycle extends Enum<DateFormat.HourCycle>
Hour Cycle- Status:
- Stable ICU 67.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HOUR_CYCLE_11
hour in am/pm (0~11)HOUR_CYCLE_12
hour in am/pm (1~12)HOUR_CYCLE_23
hour in day (0~23)HOUR_CYCLE_24
hour in day (1~24)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DateFormat.HourCycle
valueOf(String name)
Returns the enum constant of this type with the specified name.static DateFormat.HourCycle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HOUR_CYCLE_11
public static final DateFormat.HourCycle HOUR_CYCLE_11
hour in am/pm (0~11)- Status:
- Stable ICU 67.
-
HOUR_CYCLE_12
public static final DateFormat.HourCycle HOUR_CYCLE_12
hour in am/pm (1~12)- Status:
- Stable ICU 67.
-
HOUR_CYCLE_23
public static final DateFormat.HourCycle HOUR_CYCLE_23
hour in day (0~23)- Status:
- Stable ICU 67.
-
HOUR_CYCLE_24
public static final DateFormat.HourCycle HOUR_CYCLE_24
hour in day (1~24)- Status:
- Stable ICU 67.
-
-
Method Detail
-
values
public static DateFormat.HourCycle[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DateFormat.HourCycle c : DateFormat.HourCycle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateFormat.HourCycle valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-