Package com.ibm.icu.text
Enum RelativeDateTimeFormatter.AbsoluteUnit
- java.lang.Object
-
- java.lang.Enum<RelativeDateTimeFormatter.AbsoluteUnit>
-
- com.ibm.icu.text.RelativeDateTimeFormatter.AbsoluteUnit
-
- All Implemented Interfaces:
Serializable
,Comparable<RelativeDateTimeFormatter.AbsoluteUnit>
- Enclosing class:
- RelativeDateTimeFormatter
public static enum RelativeDateTimeFormatter.AbsoluteUnit extends Enum<RelativeDateTimeFormatter.AbsoluteUnit>
Represents an absolute unit.- Status:
- Stable ICU 53.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RelativeDateTimeFormatter.AbsoluteUnit
valueOf(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.
-
-
-
Enum Constant Detail
-
SUNDAY
public static final RelativeDateTimeFormatter.AbsoluteUnit SUNDAY
Sunday- Status:
- Stable ICU 53.
-
MONDAY
public static final RelativeDateTimeFormatter.AbsoluteUnit MONDAY
Monday- Status:
- Stable ICU 53.
-
TUESDAY
public static final RelativeDateTimeFormatter.AbsoluteUnit TUESDAY
Tuesday- Status:
- Stable ICU 53.
-
WEDNESDAY
public static final RelativeDateTimeFormatter.AbsoluteUnit WEDNESDAY
Wednesday- Status:
- Stable ICU 53.
-
THURSDAY
public static final RelativeDateTimeFormatter.AbsoluteUnit THURSDAY
Thursday- Status:
- Stable ICU 53.
-
FRIDAY
public static final RelativeDateTimeFormatter.AbsoluteUnit FRIDAY
Friday- Status:
- Stable ICU 53.
-
SATURDAY
public static final RelativeDateTimeFormatter.AbsoluteUnit SATURDAY
Saturday- Status:
- Stable ICU 53.
-
DAY
public static final RelativeDateTimeFormatter.AbsoluteUnit DAY
Day- Status:
- Stable ICU 53.
-
WEEK
public static final RelativeDateTimeFormatter.AbsoluteUnit WEEK
Week- Status:
- Stable ICU 53.
-
MONTH
public static final RelativeDateTimeFormatter.AbsoluteUnit MONTH
Month- Status:
- Stable ICU 53.
-
YEAR
public static final RelativeDateTimeFormatter.AbsoluteUnit YEAR
Year- Status:
- Stable ICU 53.
-
NOW
public static final RelativeDateTimeFormatter.AbsoluteUnit NOW
Now- Status:
- Stable ICU 53.
-
QUARTER
public static final RelativeDateTimeFormatter.AbsoluteUnit QUARTER
Quarter- Status:
- Stable ICU 64.
-
HOUR
public static final RelativeDateTimeFormatter.AbsoluteUnit HOUR
Hour- Status:
- Stable ICU 65.
-
MINUTE
public static final RelativeDateTimeFormatter.AbsoluteUnit MINUTE
Minute- Status:
- Stable ICU 65.
-
-
Method Detail
-
values
public static RelativeDateTimeFormatter.AbsoluteUnit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RelativeDateTimeFormatter.AbsoluteUnit c : RelativeDateTimeFormatter.AbsoluteUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RelativeDateTimeFormatter.AbsoluteUnit valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-