public static enum RelativeDateTimeFormatter.RelativeUnit extends Enum<RelativeDateTimeFormatter.RelativeUnit>
Enum Constant and Description |
---|
DAYS
Days
|
FRIDAYS
Fridays
|
HOURS
Hours
|
MINUTES
Minutes
|
MONDAYS
Mondays
|
MONTHS
Months
|
QUARTERS
Quarters
|
SATURDAYS
Saturdays
|
SECONDS
Seconds
|
SUNDAYS
Sundays
|
THURSDAYS
Thursdays
|
TUESDAYS
Tuesdays
|
WEDNESDAYS
Wednesdays
|
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
public static final RelativeDateTimeFormatter.RelativeUnit QUARTERS
public static final RelativeDateTimeFormatter.RelativeUnit SUNDAYS
public static final RelativeDateTimeFormatter.RelativeUnit MONDAYS
public static final RelativeDateTimeFormatter.RelativeUnit TUESDAYS
public static final RelativeDateTimeFormatter.RelativeUnit WEDNESDAYS
public static final RelativeDateTimeFormatter.RelativeUnit THURSDAYS
public static final RelativeDateTimeFormatter.RelativeUnit FRIDAYS
public static final RelativeDateTimeFormatter.RelativeUnit SATURDAYS
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 © 2016 Unicode, Inc. and others.