public static enum GeneralPreferencesInfo.DateFormat extends java.lang.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 |
---|---|
java.lang.String |
getLongFormat() |
java.lang.String |
getShortFormat() |
static GeneralPreferencesInfo.DateFormat |
valueOf(java.lang.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(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 getShortFormat()
public java.lang.String getLongFormat()