public static enum RelativeDateTimeFormatter.Style extends Enum<RelativeDateTimeFormatter.Style>
Enum Constant and Description |
---|
LONG
Everything spelled out.
|
NARROW
Use single letters when possible.
|
SHORT
Abbreviations used when possible.
|
Modifier and Type | Method and Description |
---|---|
static RelativeDateTimeFormatter.Style |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RelativeDateTimeFormatter.Style[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RelativeDateTimeFormatter.Style LONG
public static final RelativeDateTimeFormatter.Style SHORT
public static final RelativeDateTimeFormatter.Style NARROW
public static RelativeDateTimeFormatter.Style[] values()
for (RelativeDateTimeFormatter.Style c : RelativeDateTimeFormatter.Style.values()) System.out.println(c);
public static RelativeDateTimeFormatter.Style 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 nullCopyright © 2016 Unicode, Inc. and others.