@Deprecated public static class ChineseDateFormat.Field extends DateFormat.Field
There is no public constructor to this class, the only instances are the constants defined here.
| Modifier and Type | Field and Description |
|---|---|
static ChineseDateFormat.Field |
IS_LEAP_MONTH
Deprecated.
ICU 50 This field is only used by the deprecated ChineseDateFormat class.
|
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| Modifier | Constructor and Description |
|---|---|
protected |
Field(java.lang.String name,
int calendarField)
Deprecated.
ICU 50
|
| Modifier and Type | Method and Description |
|---|---|
static DateFormat.Field |
ofCalendarField(int calendarField)
Deprecated.
ICU 50
|
protected java.lang.Object |
readResolve()
Deprecated.
ICU 50
|
getCalendarField@Deprecated public static final ChineseDateFormat.Field IS_LEAP_MONTH
@Deprecated
protected Field(java.lang.String name,
int calendarField)
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.name - Name of the attributecalendarField - Calendar field constant@Deprecated public static DateFormat.Field ofCalendarField(int calendarField)
Field constant that corresponds to the
ChineseCalendar field calendarField. If there is no
corresponding Field is available, null is returned.calendarField - ChineseCalendar field constantField associated with the calendarField,
or null if no associated Field is available.java.lang.IllegalArgumentException - if calendarField is not
a valid Calendar field constant.@Deprecated
protected java.lang.Object readResolve()
throws java.io.InvalidObjectException
readResolve in class DateFormat.Fieldjava.io.InvalidObjectException - if the constant could not be resolved.Copyright © 2016 Unicode, Inc. and others.