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
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Field​(java.lang.String fieldName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected java.lang.Object readResolve()
      Deprecated.
      This API is ICU internal only.
      • 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
    • Constructor Detail

      • Field

        private Field​(java.lang.String fieldName)
    • Method Detail

      • readResolve

        @Deprecated
        protected java.lang.Object readResolve()
                                        throws java.io.InvalidObjectException
        Deprecated.
        This API is ICU internal only.
        Serizalization method resolve instances to the constant Field values
        Overrides:
        readResolve in class java.text.AttributedCharacterIterator.Attribute
        Throws:
        java.io.InvalidObjectException