Package com.uc4.communication
Enum TimeSettings.TimeFormat
- java.lang.Object
-
- java.lang.Enum<TimeSettings.TimeFormat>
-
- com.uc4.communication.TimeSettings.TimeFormat
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TimeSettings.TimeFormat>
- Enclosing class:
- TimeSettings
public static enum TimeSettings.TimeFormat extends java.lang.Enum<TimeSettings.TimeFormat>
Display format of times.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FORMAT_12HRS
12 hours.FORMAT_24HRS
24 hours.FORMAT_DEFAULT
Local setting.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TimeSettings.TimeFormat
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TimeSettings.TimeFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FORMAT_DEFAULT
public static final TimeSettings.TimeFormat FORMAT_DEFAULT
Local setting.
-
FORMAT_12HRS
public static final TimeSettings.TimeFormat FORMAT_12HRS
12 hours.
-
FORMAT_24HRS
public static final TimeSettings.TimeFormat FORMAT_24HRS
24 hours.
-
-
Method Detail
-
values
public static TimeSettings.TimeFormat[] 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 (TimeSettings.TimeFormat c : TimeSettings.TimeFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TimeSettings.TimeFormat valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-