java.io.Serializable
, java.lang.Comparable<RelativeDateTimeFormatter.AbsoluteUnit>
public static enum RelativeDateTimeFormatter.AbsoluteUnit extends java.lang.Enum<RelativeDateTimeFormatter.AbsoluteUnit>
Enum Constant | Description |
---|---|
DAY |
Day
|
FRIDAY |
Friday
|
MONDAY |
Monday
|
MONTH |
Month
|
NOW |
Now
|
QUARTER |
Deprecated.
This API is ICU internal only.
|
SATURDAY |
Saturday
|
SUNDAY |
Sunday
|
THURSDAY |
Thursday
|
TUESDAY |
Tuesday
|
WEDNESDAY |
Wednesday
|
WEEK |
Week
|
YEAR |
Year
|
Modifier and Type | Method | Description |
---|---|---|
static RelativeDateTimeFormatter.AbsoluteUnit |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static RelativeDateTimeFormatter.AbsoluteUnit[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RelativeDateTimeFormatter.AbsoluteUnit SUNDAY
public static final RelativeDateTimeFormatter.AbsoluteUnit MONDAY
public static final RelativeDateTimeFormatter.AbsoluteUnit TUESDAY
public static final RelativeDateTimeFormatter.AbsoluteUnit WEDNESDAY
public static final RelativeDateTimeFormatter.AbsoluteUnit THURSDAY
public static final RelativeDateTimeFormatter.AbsoluteUnit FRIDAY
public static final RelativeDateTimeFormatter.AbsoluteUnit SATURDAY
public static final RelativeDateTimeFormatter.AbsoluteUnit DAY
public static final RelativeDateTimeFormatter.AbsoluteUnit WEEK
public static final RelativeDateTimeFormatter.AbsoluteUnit MONTH
public static final RelativeDateTimeFormatter.AbsoluteUnit YEAR
public static final RelativeDateTimeFormatter.AbsoluteUnit NOW
@Deprecated public static final RelativeDateTimeFormatter.AbsoluteUnit QUARTER
public static RelativeDateTimeFormatter.AbsoluteUnit[] values()
for (RelativeDateTimeFormatter.AbsoluteUnit c : RelativeDateTimeFormatter.AbsoluteUnit.values()) System.out.println(c);
public static RelativeDateTimeFormatter.AbsoluteUnit 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.