public static class RelativeDateTimeFormatter.Field extends Format.Field
There is no public constructor to this class; the only instances are the constants defined here.
Modifier and Type | Field and 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".
|
INPUT_METHOD_SEGMENT, LANGUAGE, READING
Modifier and Type | Method and Description |
---|---|
protected Object |
readResolve()
Deprecated.
This API is ICU internal only.
|
equals, getName, hashCode, toString
public static final RelativeDateTimeFormatter.Field LITERAL
public static final RelativeDateTimeFormatter.Field NUMERIC
@Deprecated protected Object readResolve() throws InvalidObjectException
readResolve
in class AttributedCharacterIterator.Attribute
InvalidObjectException
Copyright © 2016 Unicode, Inc. and others.