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:
Serializable
- Enclosing class:
RelativeDateTimeFormatter
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RelativeDateTimeFormatter.Field
Represents a literal text string, like "tomorrow" or "days ago".static final RelativeDateTimeFormatter.Field
Represents a number quantity, like "3" in "3 days ago".Fields inherited from class java.text.AttributedCharacterIterator.Attribute
INPUT_METHOD_SEGMENT, LANGUAGE, READING
-
Method Summary
Methods inherited from class java.text.AttributedCharacterIterator.Attribute
equals, getName, hashCode, toString
-
Field Details
-
LITERAL
Represents a literal text string, like "tomorrow" or "days ago". -
NUMERIC
Represents a number quantity, like "3" in "3 days ago".
-
-
Method Details
-
readResolve
Deprecated.This API is ICU internal only.Serizalization method resolve instances to the constant Field values- Overrides:
readResolve
in classAttributedCharacterIterator.Attribute
- Throws:
InvalidObjectException
-