Serializablepublic static class RelativeDateTimeFormatter.Field extends Format.Field
There is no public constructor to this class; the only instances are the constants defined here.
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
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| 限定符和类型 | 方法 | 说明 |
|---|---|---|
protected Object |
readResolve() |
Serizalization method resolve instances to the constant Field values
|
equals, getName, hashCode, toStringpublic static final RelativeDateTimeFormatter.Field LITERAL
public static final RelativeDateTimeFormatter.Field NUMERIC
protected Object readResolve() throws InvalidObjectException
readResolve 在类中 AttributedCharacterIterator.AttributeAttribute objectInvalidObjectException - if the object to resolve is not
an instance of Attribute