public enum DateTimeStyle extends Enum<DateTimeStyle> implements Key
AbstractFormat.format(java.lang.Object)
.Enum Constant and Description |
---|
FULL
Short formatting to display the date and/or time.
|
LONG
Long formatting to display the date and/or time.
|
MEDIUM
Long formatting to display the date and/or time.
|
SHORT
Short formatting to display the date and/or time.
|
Modifier and Type | Method and Description |
---|---|
String |
value()
Returns the name value of property
|
static DateTimeStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DateTimeStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
checkAndGetIfValid, checkIfValid, compare, create, equals, getKeyByValue, getKeyByValue, hasKeyByValue, isValid
public static final DateTimeStyle FULL
public static final DateTimeStyle LONG
public static final DateTimeStyle MEDIUM
public static final DateTimeStyle SHORT
public static DateTimeStyle[] values()
for (DateTimeStyle c : DateTimeStyle.values()) System.out.println(c);
public static DateTimeStyle 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 null