public static enum RelativeDateTimeFormatter.RelativeDateTimeUnit extends Enum<RelativeDateTimeFormatter.RelativeDateTimeUnit>
Enum Constant and Description |
---|
DAY
Specifies that relative unit is day, e.g.
|
FRIDAY
Specifies that relative unit is Friday, e.g.
|
HOUR
Specifies that relative unit is hour, e.g. "1 hour ago",
"in 5 hours".
|
MINUTE
Specifies that relative unit is minute, e.g. "1 minute ago",
"in 5 minutes".
|
MONDAY
Specifies that relative unit is Monday, e.g.
|
MONTH
Specifies that relative unit is month, e.g.
|
QUARTER
Specifies that relative unit is quarter, e.g.
|
SATURDAY
Specifies that relative unit is Saturday, e.g.
|
SECOND
Specifies that relative unit is second, e.g. "1 second ago",
"in 5 seconds".
|
SUNDAY
Specifies that relative unit is Sunday, e.g.
|
THURSDAY
Specifies that relative unit is Thursday, e.g.
|
TUESDAY
Specifies that relative unit is Tuesday, e.g.
|
WEDNESDAY
Specifies that relative unit is Wednesday, e.g.
|
WEEK
Specifies that relative unit is week, e.g.
|
YEAR
Specifies that relative unit is year, e.g.
|
Modifier and Type | Method and Description |
---|---|
static RelativeDateTimeFormatter.RelativeDateTimeUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RelativeDateTimeFormatter.RelativeDateTimeUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RelativeDateTimeFormatter.RelativeDateTimeUnit YEAR
public static final RelativeDateTimeFormatter.RelativeDateTimeUnit QUARTER
public static final RelativeDateTimeFormatter.RelativeDateTimeUnit MONTH
public static final RelativeDateTimeFormatter.RelativeDateTimeUnit WEEK
public static final RelativeDateTimeFormatter.RelativeDateTimeUnit DAY
public static final RelativeDateTimeFormatter.RelativeDateTimeUnit HOUR
public static final RelativeDateTimeFormatter.RelativeDateTimeUnit MINUTE
public static final RelativeDateTimeFormatter.RelativeDateTimeUnit SECOND
public static final RelativeDateTimeFormatter.RelativeDateTimeUnit SUNDAY
public static final RelativeDateTimeFormatter.RelativeDateTimeUnit MONDAY
public static final RelativeDateTimeFormatter.RelativeDateTimeUnit TUESDAY
public static final RelativeDateTimeFormatter.RelativeDateTimeUnit WEDNESDAY
public static final RelativeDateTimeFormatter.RelativeDateTimeUnit THURSDAY
public static final RelativeDateTimeFormatter.RelativeDateTimeUnit FRIDAY
public static final RelativeDateTimeFormatter.RelativeDateTimeUnit SATURDAY
public static RelativeDateTimeFormatter.RelativeDateTimeUnit[] values()
for (RelativeDateTimeFormatter.RelativeDateTimeUnit c : RelativeDateTimeFormatter.RelativeDateTimeUnit.values()) System.out.println(c);
public static RelativeDateTimeFormatter.RelativeDateTimeUnit 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.