Class RelativeDateTimeFormatter.Field
java.lang.Object
java.text.AttributedCharacterIterator.Attribute
java.text.Format.Field
org.graalvm.shadowed.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.FieldRepresents a literal text string, like "tomorrow" or "days ago".static final RelativeDateTimeFormatter.FieldRepresents a number quantity, like "3" in "3 days ago".Fields inherited from class AttributedCharacterIterator.Attribute
INPUT_METHOD_SEGMENT, LANGUAGE, READING -
Method Summary
Methods inherited from class 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:
readResolvein classAttributedCharacterIterator.Attribute- Throws:
InvalidObjectException
-