Package com.ibm.icu.text
Class RelativeDateTimeFormatter.Field
- java.lang.Object
-
- java.text.AttributedCharacterIterator.Attribute
-
- java.text.Format.Field
-
- com.ibm.icu.text.RelativeDateTimeFormatter.Field
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- RelativeDateTimeFormatter
public static class RelativeDateTimeFormatter.Field extends java.text.Format.Field
Field constants used when accessing field information for relative datetime strings in FormattedValue.There is no public constructor to this class; the only instances are the constants defined here.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static RelativeDateTimeFormatter.Field
LITERAL
Represents a literal text string, like "tomorrow" or "days ago".static RelativeDateTimeFormatter.Field
NUMERIC
Represents a number quantity, like "3" in "3 days ago".
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
readResolve()
Serizalization method resolve instances to the constant Field values
-
-
-
Field Detail
-
LITERAL
public static final RelativeDateTimeFormatter.Field LITERAL
Represents a literal text string, like "tomorrow" or "days ago".
-
NUMERIC
public static final RelativeDateTimeFormatter.Field NUMERIC
Represents a number quantity, like "3" in "3 days ago".
-
-