Class ChineseDateFormat.Field

All Implemented Interfaces:
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:
  • Field Details

    • 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 Details

    • Field

      @Deprecated protected Field(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 Details

    • 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:
      IllegalArgumentException - if calendarField is not a valid Calendar field constant.
    • readResolve

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