public static class RelativeDateTimeFormatter.Field
extends java.text.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".
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
readResolve()
Serizalization method resolve instances to the constant Field values
|
public static final RelativeDateTimeFormatter.Field LITERAL
public static final RelativeDateTimeFormatter.Field NUMERIC
protected java.lang.Object readResolve() throws java.io.InvalidObjectException
readResolve
in class java.text.AttributedCharacterIterator.Attribute
java.io.InvalidObjectException
Copyright © 2016 Unicode, Inc. and others.