Enum GeneralPreferencesInfo.DateFormat
- java.lang.Object
-
- java.lang.Enum<GeneralPreferencesInfo.DateFormat>
-
- com.google.gerrit.extensions.client.GeneralPreferencesInfo.DateFormat
-
- All Implemented Interfaces:
Serializable
,Comparable<GeneralPreferencesInfo.DateFormat>
- Enclosing class:
- GeneralPreferencesInfo
public static enum GeneralPreferencesInfo.DateFormat extends Enum<GeneralPreferencesInfo.DateFormat>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLongFormat()
String
getShortFormat()
static GeneralPreferencesInfo.DateFormat
valueOf(String name)
Returns the enum constant of this type with the specified name.static GeneralPreferencesInfo.DateFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STD
public static final GeneralPreferencesInfo.DateFormat STD
US style dates: Apr 27, Feb 14, 2010
-
US
public static final GeneralPreferencesInfo.DateFormat US
US style dates: 04/27, 02/14/10
-
ISO
public static final GeneralPreferencesInfo.DateFormat ISO
ISO style dates: 2010-02-14
-
EURO
public static final GeneralPreferencesInfo.DateFormat EURO
European style dates: 27. Apr, 27.04.2010
-
UK
public static final GeneralPreferencesInfo.DateFormat UK
UK style dates: 27/04, 27/04/2010
-
-
Method Detail
-
values
public static GeneralPreferencesInfo.DateFormat[] 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.DateFormat c : GeneralPreferencesInfo.DateFormat.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.DateFormat 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
-
getShortFormat
public String getShortFormat()
-
getLongFormat
public String getLongFormat()
-
-