public enum DateTime extends Enum<DateTime>
| Modifier and Type | Method and Description |
|---|---|
char |
getShortKey() |
static int |
parseDateFormat(char style)
This method will return the DateTime style for the character of the style
argument.
|
static DateTime |
parseDateTimeFormat(char style)
This method will return the DateTime style for the character of the style
argument.
|
String |
toString() |
static DateTime |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateTime[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DateTime MEDIUM
public static final DateTime NONE
public static final DateTime SHORT
public static DateTime[] values()
for (DateTime c : DateTime.values()) System.out.println(c);
public static DateTime 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 static int parseDateFormat(char style)
style - the date or time style, ie 'S'public static DateTime parseDateTimeFormat(char style)
style - the date or time style, ie 'S'public char getShortKey()
Copyright © 2009–2017. All rights reserved.