java.io.Serializable
, java.lang.Comparable<RelativeDateTimeFormatter.Direction>
public static enum RelativeDateTimeFormatter.Direction extends java.lang.Enum<RelativeDateTimeFormatter.Direction>
Enum Constant | Description |
---|---|
LAST |
Last
|
LAST_2 |
Two before.
|
NEXT |
Next
|
NEXT_2 |
Two after.
|
PLAIN |
Plain, which means the absence of a qualifier
|
THIS |
This
|
Modifier and Type | Method | Description |
---|---|---|
static RelativeDateTimeFormatter.Direction |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static RelativeDateTimeFormatter.Direction[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RelativeDateTimeFormatter.Direction LAST_2
public static final RelativeDateTimeFormatter.Direction LAST
public static final RelativeDateTimeFormatter.Direction THIS
public static final RelativeDateTimeFormatter.Direction NEXT
public static final RelativeDateTimeFormatter.Direction NEXT_2
public static final RelativeDateTimeFormatter.Direction PLAIN
public static RelativeDateTimeFormatter.Direction[] values()
for (RelativeDateTimeFormatter.Direction c : RelativeDateTimeFormatter.Direction.values()) System.out.println(c);
public static RelativeDateTimeFormatter.Direction 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.