Class RelativeDateTimeFormatter.Field

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    RelativeDateTimeFormatter

    public static class RelativeDateTimeFormatter.Field
    extends java.text.Format.Field
    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:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field 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".
      • Fields inherited from class java.text.AttributedCharacterIterator.Attribute

        INPUT_METHOD_SEGMENT, LANGUAGE, READING
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object readResolve()
      Serizalization method resolve instances to the constant Field values
      • Methods inherited from class java.text.AttributedCharacterIterator.Attribute

        equals, getName, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • readResolve

        protected java.lang.Object readResolve()
                                        throws java.io.InvalidObjectException
        Serizalization method resolve instances to the constant Field values
        Overrides:
        readResolve in class java.text.AttributedCharacterIterator.Attribute
        Throws:
        java.io.InvalidObjectException