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:
Serializable
- Enclosing class:
ChineseDateFormat
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.
- Author:
- Alan Liu
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ChineseDateFormat.FieldDeprecated.ICU 50 This field is only used by the deprecated ChineseDateFormat class.Fields inherited from class 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_WOYModifier and TypeFieldDescriptionstatic final DateFormat.FieldConstant identifying the time of day indicator(am/pm).static final DateFormat.Field[icu] Constant identifying the am/pm/midnight/noon field.static final DateFormat.FieldConstant identifying the day of month field.static final DateFormat.FieldConstant identifying the day of week field.static final DateFormat.FieldConstant identifying the day of week in month field.static final DateFormat.FieldConstant identifying the day of year field.static final DateFormat.FieldConstant identifying the local day of week field.static final DateFormat.FieldConstant identifying the era field.static final DateFormat.FieldConstant identifying the extended year field.static final DateFormat.Field[icu] Constant identifying the flexible day period field.static final DateFormat.FieldConstant identifying the hour(0-23) of day field.static final DateFormat.FieldConstant identifying the hour(1-24) of day field.static final DateFormat.FieldConstant identifying the hour(0-11) field.static final DateFormat.FieldConstant identifying the hour(1-12) field.static final DateFormat.FieldConstant identifying the Julian day field.static final DateFormat.FieldConstant identifying the millisecond field.static final DateFormat.FieldConstant identifying the milliseconds in day field.static final DateFormat.FieldConstant identifying the minute field.static final DateFormat.FieldConstant identifying the month field.static final DateFormat.FieldConstant identifying the quarter field.static final DateFormat.FieldDeprecated.This API is ICU internal only.static final DateFormat.FieldConstant identifying the second field.static final DateFormat.FieldDeprecated.This API is ICU internal only.static final DateFormat.FieldConstant identifying the time zone field.static final DateFormat.FieldConstant identifying the week of month field.static final DateFormat.FieldConstant identifying the week of year field.static final DateFormat.FieldConstant identifying the year field.static final DateFormat.FieldConstant identifying the year used with week of year field.Fields inherited from class AttributedCharacterIterator.Attribute
INPUT_METHOD_SEGMENT, LANGUAGE, READING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DateFormat.FieldofCalendarField(int calendarField) Deprecated.ICU 50protected ObjectDeprecated.ICU 50Methods inherited from class DateFormat.Field
getCalendarFieldModifier and TypeMethodDescriptionintReturns theCalendarfield associated with this attribute.Methods inherited from class AttributedCharacterIterator.Attribute
equals, getName, hashCode, toString
-
Field Details
-
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.ICU 50Constructs aChineseDateFormat.Fieldwith the given name and theChineseCalendarfield which this attribute represents. Use -1 forcalendarFieldif this field does not have a correspondingChineseCalendarfield.- Parameters:
name- Name of the attributecalendarField-Calendarfield constant
-
-
Method Details
-
ofCalendarField
Deprecated.ICU 50Returns theFieldconstant that corresponds to theChineseCalendarfieldcalendarField. If there is no correspondingFieldis available, null is returned.- Parameters:
calendarField-ChineseCalendarfield constant- Returns:
Fieldassociated with thecalendarField, or null if no associatedFieldis available.- Throws:
IllegalArgumentException- ifcalendarFieldis not a validCalendarfield constant.
-
readResolve
Deprecated.ICU 50Resolves instances being deserialized to the predefined constants.- Overrides:
readResolvein classDateFormat.Field- Throws:
InvalidObjectException- if the constant could not be resolved.
-