java.io.Serializable
, java.lang.Comparable<RelativeDateTimeFormatter.Style>
public static enum RelativeDateTimeFormatter.Style extends java.lang.Enum<RelativeDateTimeFormatter.Style>
Enum Constant | Description |
---|---|
LONG |
Everything spelled out.
|
NARROW |
Use single letters when possible.
|
SHORT |
Abbreviations used when possible.
|
Modifier and Type | Method | Description |
---|---|---|
static RelativeDateTimeFormatter.Style |
valueOf(java.lang.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(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 nullCopyright ? 2016 Unicode, Inc. and others.