Enum GeneralPreferencesInfo.TimeFormat
- java.lang.Object
-
- java.lang.Enum<GeneralPreferencesInfo.TimeFormat>
-
- com.google.gerrit.extensions.client.GeneralPreferencesInfo.TimeFormat
-
- All Implemented Interfaces:
Serializable
,Comparable<GeneralPreferencesInfo.TimeFormat>
- Enclosing class:
- GeneralPreferencesInfo
public static enum GeneralPreferencesInfo.TimeFormat extends Enum<GeneralPreferencesInfo.TimeFormat>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFormat()
static GeneralPreferencesInfo.TimeFormat
valueOf(String name)
Returns the enum constant of this type with the specified name.static GeneralPreferencesInfo.TimeFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HHMM_12
public static final GeneralPreferencesInfo.TimeFormat HHMM_12
12-hour clock: 1:15 am, 2:13 pm
-
HHMM_24
public static final GeneralPreferencesInfo.TimeFormat HHMM_24
24-hour clock: 01:15, 14:13
-
-
Method Detail
-
values
public static GeneralPreferencesInfo.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 (GeneralPreferencesInfo.TimeFormat c : GeneralPreferencesInfo.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 GeneralPreferencesInfo.TimeFormat 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
-
getFormat
public String getFormat()
-
-