Class ChineseDateFormat.Field

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

    @Deprecated
    public static class ChineseDateFormat.Field
    extends DateFormat.Field
    Deprecated.
    ICU 50
    The instances of this inner class are used as attribute keys and values in AttributedCharacterIterator that ChineseDateFormat.formatToCharacterIterator() method returns.

    There is no public constructor to this class, the only instances are the constants defined here.

    See Also:
    Serialized Form
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Deprecated.
        See Also:
        Constant Field Values
      • IS_LEAP_MONTH

        @Deprecated
        public static final ChineseDateFormat.Field IS_LEAP_MONTH
        Deprecated.
        ICU 50 This field is only used by the deprecated ChineseDateFormat class.
        Constant identifying the leap month marker.
    • Constructor Detail

      • Field

        @Deprecated
        protected Field​(java.lang.String name,
                        int calendarField)
        Deprecated.
        ICU 50
        Constructs a ChineseDateFormat.Field with the given name and the ChineseCalendar field which this attribute represents. Use -1 for calendarField if this field does not have a corresponding ChineseCalendar field.
        Parameters:
        name - Name of the attribute
        calendarField - Calendar field constant
    • Method Detail

      • ofCalendarField

        @Deprecated
        public static DateFormat.Field ofCalendarField​(int calendarField)
        Deprecated.
        ICU 50
        Returns the Field constant that corresponds to the ChineseCalendar field calendarField. If there is no corresponding Field is available, null is returned.
        Parameters:
        calendarField - ChineseCalendar field constant
        Returns:
        Field associated with the calendarField, or null if no associated Field is available.
        Throws:
        java.lang.IllegalArgumentException - if calendarField is not a valid Calendar field constant.
      • readResolve

        @Deprecated
        protected java.lang.Object readResolve()
                                        throws java.io.InvalidObjectException
        Deprecated.
        ICU 50
        Resolves instances being deserialized to the predefined constants.
        Overrides:
        readResolve in class DateFormat.Field
        Throws:
        java.io.InvalidObjectException - if the constant could not be resolved.