public static enum GeneralPreferencesInfo.DateFormat extends Enum<GeneralPreferencesInfo.DateFormat>
Enum Constant and Description |
---|
EURO
European style dates: 27.
|
ISO
ISO style dates: 2010-02-14
|
STD
US style dates: Apr 27, Feb 14, 2010
|
UK
UK style dates: 27/04, 27/04/2010
|
US
US style dates: 04/27, 02/14/10
|
Modifier and Type | Method and 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.
|
public static final GeneralPreferencesInfo.DateFormat STD
public static final GeneralPreferencesInfo.DateFormat US
public static final GeneralPreferencesInfo.DateFormat ISO
public static final GeneralPreferencesInfo.DateFormat EURO
public static final GeneralPreferencesInfo.DateFormat UK
public static GeneralPreferencesInfo.DateFormat[] values()
for (GeneralPreferencesInfo.DateFormat c : GeneralPreferencesInfo.DateFormat.values()) System.out.println(c);
public static GeneralPreferencesInfo.DateFormat valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getShortFormat()
public String getLongFormat()