public static enum GeneralPreferencesInfo.TimeFormat extends java.lang.Enum<GeneralPreferencesInfo.TimeFormat>
Enum Constant and Description |
---|
HHMM_12
12-hour clock: 1:15 am, 2:13 pm
|
HHMM_24
24-hour clock: 01:15, 14:13
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFormat() |
static GeneralPreferencesInfo.TimeFormat |
valueOf(java.lang.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.
|
public static final GeneralPreferencesInfo.TimeFormat HHMM_12
public static final GeneralPreferencesInfo.TimeFormat HHMM_24
public static GeneralPreferencesInfo.TimeFormat[] values()
for (GeneralPreferencesInfo.TimeFormat c : GeneralPreferencesInfo.TimeFormat.values()) System.out.println(c);
public static GeneralPreferencesInfo.TimeFormat 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 java.lang.String getFormat()