Package com.ibm.icu.text
Class ChineseDateFormat.Field
- java.lang.Object
-
- java.text.AttributedCharacterIterator.Attribute
-
- java.text.Format.Field
-
- com.ibm.icu.text.DateFormat.Field
-
- com.ibm.icu.text.ChineseDateFormat.Field
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- ChineseDateFormat
@Deprecated public static class ChineseDateFormat.Field extends DateFormat.Field
Deprecated.ICU 50The 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 Summary
Fields Modifier and Type Field Description static ChineseDateFormat.Field
IS_LEAP_MONTH
Deprecated.ICU 50 This field is only used by the deprecated ChineseDateFormat class.-
Fields inherited from class com.ibm.icu.text.DateFormat.Field
AM_PM, AM_PM_MIDNIGHT_NOON, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, DOW_LOCAL, ERA, EXTENDED_YEAR, FLEXIBLE_DAY_PERIOD, HOUR_OF_DAY0, HOUR_OF_DAY1, HOUR0, HOUR1, JULIAN_DAY, MILLISECOND, MILLISECONDS_IN_DAY, MINUTE, MONTH, QUARTER, RELATED_YEAR, SECOND, TIME_SEPARATOR, TIME_ZONE, WEEK_OF_MONTH, WEEK_OF_YEAR, YEAR, YEAR_WOY
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Field(java.lang.String name, int calendarField)
Deprecated.ICU 50
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DateFormat.Field
ofCalendarField(int calendarField)
Deprecated.ICU 50protected java.lang.Object
readResolve()
Deprecated.ICU 50-
Methods inherited from class com.ibm.icu.text.DateFormat.Field
getCalendarField
-
-
-
-
Field Detail
-
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 50Constructs aChineseDateFormat.Field
with the given name and theChineseCalendar
field which this attribute represents. Use -1 forcalendarField
if this field does not have a correspondingChineseCalendar
field.- Parameters:
name
- Name of the attributecalendarField
-Calendar
field constant
-
-
Method Detail
-
ofCalendarField
@Deprecated public static DateFormat.Field ofCalendarField(int calendarField)
Deprecated.ICU 50Returns theField
constant that corresponds to theChineseCalendar
fieldcalendarField
. If there is no correspondingField
is available, null is returned.- Parameters:
calendarField
-ChineseCalendar
field constant- Returns:
Field
associated with thecalendarField
, or null if no associatedField
is available.- Throws:
java.lang.IllegalArgumentException
- ifcalendarField
is not a validCalendar
field constant.
-
readResolve
@Deprecated protected java.lang.Object readResolve() throws java.io.InvalidObjectException
Deprecated.ICU 50Resolves instances being deserialized to the predefined constants.- Overrides:
readResolve
in classDateFormat.Field
- Throws:
java.io.InvalidObjectException
- if the constant could not be resolved.
-
-