Serializable
, Comparable<RelativeDateTimeFormatter.Direction>
public static enum RelativeDateTimeFormatter.Direction extends 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(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(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.