public static enum RelativeDateTimeFormatter.RelativeUnit extends Enum<RelativeDateTimeFormatter.RelativeUnit>
Enum Constant and Description |
---|
DAYS
Days
|
HOURS
Hours
|
MINUTES
Minutes
|
MONTHS
Months
|
QUARTERS
Deprecated.
This API is ICU internal only.
|
SECONDS
Seconds
|
WEEKS
Weeks
|
YEARS
Years
|
Modifier and Type | Method and Description |
---|---|
static RelativeDateTimeFormatter.RelativeUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RelativeDateTimeFormatter.RelativeUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RelativeDateTimeFormatter.RelativeUnit SECONDS
public static final RelativeDateTimeFormatter.RelativeUnit MINUTES
public static final RelativeDateTimeFormatter.RelativeUnit HOURS
public static final RelativeDateTimeFormatter.RelativeUnit DAYS
public static final RelativeDateTimeFormatter.RelativeUnit WEEKS
public static final RelativeDateTimeFormatter.RelativeUnit MONTHS
public static final RelativeDateTimeFormatter.RelativeUnit YEARS
@Deprecated public static final RelativeDateTimeFormatter.RelativeUnit QUARTERS
public static RelativeDateTimeFormatter.RelativeUnit[] values()
for (RelativeDateTimeFormatter.RelativeUnit c : RelativeDateTimeFormatter.RelativeUnit.values()) System.out.println(c);
public static RelativeDateTimeFormatter.RelativeUnit 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 (c) 2016 IBM Corporation and others.