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:
java.io.Serializable
,java.lang.Comparable<RelativeDateTimeFormatter.AbsoluteUnit>
- Enclosing class:
- RelativeDateTimeFormatter
public static enum RelativeDateTimeFormatter.AbsoluteUnit extends java.lang.Enum<RelativeDateTimeFormatter.AbsoluteUnit>
Represents an absolute unit.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
AbsoluteUnit()
-
Method Summary
All Methods Static Methods Concrete Methods 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.
-
-
-
Enum Constant Detail
-
SUNDAY
public static final RelativeDateTimeFormatter.AbsoluteUnit SUNDAY
Sunday
-
MONDAY
public static final RelativeDateTimeFormatter.AbsoluteUnit MONDAY
Monday
-
TUESDAY
public static final RelativeDateTimeFormatter.AbsoluteUnit TUESDAY
Tuesday
-
WEDNESDAY
public static final RelativeDateTimeFormatter.AbsoluteUnit WEDNESDAY
Wednesday
-
THURSDAY
public static final RelativeDateTimeFormatter.AbsoluteUnit THURSDAY
Thursday
-
FRIDAY
public static final RelativeDateTimeFormatter.AbsoluteUnit FRIDAY
Friday
-
SATURDAY
public static final RelativeDateTimeFormatter.AbsoluteUnit SATURDAY
Saturday
-
DAY
public static final RelativeDateTimeFormatter.AbsoluteUnit DAY
Day
-
WEEK
public static final RelativeDateTimeFormatter.AbsoluteUnit WEEK
Week
-
MONTH
public static final RelativeDateTimeFormatter.AbsoluteUnit MONTH
Month
-
YEAR
public static final RelativeDateTimeFormatter.AbsoluteUnit YEAR
Year
-
NOW
public static final RelativeDateTimeFormatter.AbsoluteUnit NOW
Now
-
QUARTER
public static final RelativeDateTimeFormatter.AbsoluteUnit QUARTER
Quarter
-
HOUR
public static final RelativeDateTimeFormatter.AbsoluteUnit HOUR
Hour
-
MINUTE
public static final RelativeDateTimeFormatter.AbsoluteUnit MINUTE
Minute
-
-
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(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-