Class ChineseDateFormatSymbols
java.lang.Object
com.ibm.icu.text.DateFormatSymbols
com.ibm.icu.text.ChineseDateFormatSymbols
- All Implemented Interfaces:
Serializable, Cloneable
Deprecated.
ICU 50
A subclass of
DateFormatSymbols for ChineseDateFormat. This class contains
additional symbols corresponding to the ChineseCalendar.IS_LEAP_MONTH field.- Author:
- Alan Liu
- See Also:
-
Field Summary
Fields inherited from class DateFormatSymbols
ABBREVIATED, DT_CONTEXT_COUNT, DT_WIDTH_COUNT, FORMAT, NARROW, NUMERIC, SHORT, STANDALONE, WIDEModifier and TypeFieldDescriptionstatic final int[icu] Constant for width.static final intDeprecated.This API is ICU internal only.static final intDeprecated.This API is ICU internal only.static final int[icu] Constant for context.static final int[icu] Constant for width.static final intDeprecated.This API is ICU internal only.static final int[icu] Constant for width; only supported for weekdays.static final int[icu] Constant for context.static final int[icu] Constant for width. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.ICU 50ChineseDateFormatSymbols(Calendar cal, ULocale locale) Deprecated.ICU 50ChineseDateFormatSymbols(Calendar cal, Locale locale) Deprecated.ICU 50ChineseDateFormatSymbols(ULocale locale) Deprecated.ICU 50ChineseDateFormatSymbols(Locale locale) Deprecated.ICU 50 -
Method Summary
Modifier and TypeMethodDescriptiongetLeapMonth(int leap) Deprecated.ICU 50protected voidinitializeData(ULocale loc, com.ibm.icu.impl.ICUResourceBundle b, String calendarType) Deprecated.ICU 50Methods inherited from class DateFormatSymbols
clone, equals, getAmPmStrings, getAmPmStrings, getAvailableLocales, getAvailableULocales, getDateFormatBundle, getDateFormatBundle, getDateFormatBundle, getDateFormatBundle, getEraNames, getEras, getInstance, getInstance, getInstance, getLeapMonthPattern, getLocale, getLocalPatternChars, getMonths, getMonths, getNarrowEras, getQuarters, getShortMonths, getShortWeekdays, getTimeSeparatorString, getWeekdays, getWeekdays, getYearNames, getZodiacNames, getZoneStrings, hashCode, initEras, initializeData, setAmPmStrings, setAmPmStrings, setEraNames, setEras, setLeapMonthPattern, setLocalPatternChars, setMonths, setMonths, setNarrowEras, setQuarters, setShortMonths, setShortWeekdays, setTimeSeparatorString, setWeekdays, setWeekdays, setYearNames, setZodiacNames, setZoneStringsModifier and TypeMethodDescriptionclone()Overrides clone.booleanOverrides equals.String[]Returns am/pm strings.String[]getAmPmStrings(int context, int width) Returns am/pm strings with the specified width.static Locale[]Returns an array of all locales for which thegetInstancemethods of this class can return localized instances.static ULocale[][icu] Returns an array of all locales for which thegetInstancemethods of this class can return localized instances.static ResourceBundlegetDateFormatBundle(Calendar cal, ULocale locale) Deprecated.ICU 4.0static ResourceBundlegetDateFormatBundle(Calendar cal, Locale locale) Deprecated.ICU 4.0static ResourceBundlegetDateFormatBundle(Class<? extends Calendar> calendarClass, ULocale locale) Deprecated.ICU 4.0static ResourceBundlegetDateFormatBundle(Class<? extends Calendar> calendarClass, Locale locale) Deprecated.ICU 4.0String[][icu] Returns full era name strings.String[]getEras()Returns abbreviated era strings.static DateFormatSymbolsReturns a DateFormatSymbols instance for the default locale.static DateFormatSymbolsgetInstance(ULocale locale) [icu] Returns a DateFormatSymbols instance for the given locale.static DateFormatSymbolsgetInstance(Locale locale) Returns a DateFormatSymbols instance for the given locale.getLeapMonthPattern(int context, int width) Deprecated.This API is ICU internal only.final ULocalegetLocale(ULocale.Type type) Returns the locale that was used to create this object, or null.Returns localized date-time pattern characters.String[]Returns month strings.String[]getMonths(int context, int width) Returns month strings.String[][icu] Returns narrow era name strings.String[]getQuarters(int context, int width) [icu] Returns quarter strings.String[]Returns short month strings.String[]Returns abbreviated weekday strings; for example: "Sun", "Mon", etc.Deprecated.This API is ICU internal only.String[]Returns wide weekday strings.String[]getWeekdays(int context, int width) Returns weekday strings.String[]getYearNames(int context, int width) Returns cyclic year name strings if the calendar has them, for example: "jia-zi", "yi-chou", etc.String[]getZodiacNames(int context, int width) Returns calendar zodiac name strings if the calendar has them, for example: "Rat", "Ox", "Tiger", etc.String[][]Returns time zone strings.inthashCode()Override hashCode.protected String[]initEras(String erasKey, Map<String, Map<String, String>> maps, com.ibm.icu.impl.ICUResourceBundle calBaseBundle, com.ibm.icu.impl.EraRules eraRules) Deprecated.This API is ICU internal only.protected voidinitializeData(ULocale desiredLocale, String type) Initializes format symbols for the locale and calendar typevoidsetAmPmStrings(String[] newAmpms) Sets am/pm strings.voidsetAmPmStrings(String[] newAmpms, int context, int width) Sets am/pm strings with the specified width.voidsetEraNames(String[] newEraNames) [icu] Sets full era name strings.voidSets abbreviated era strings.voidsetLeapMonthPattern(String leapMonthPattern, int context, int width) Deprecated.This API is ICU internal only.voidsetLocalPatternChars(String newLocalPatternChars) Sets localized date-time pattern characters.voidSets month strings.voidSets month strings.voidsetNarrowEras(String[] newNarrowEras) [icu] Sets narrow era name strings.voidsetQuarters(String[] newQuarters, int context, int width) [icu] Sets quarter strings.voidsetShortMonths(String[] newShortMonths) Sets short month strings.voidsetShortWeekdays(String[] newAbbrevWeekdays) Sets abbreviated weekday strings; for example: "Sun", "Mon", etc.voidsetTimeSeparatorString(String newTimeSeparator) Deprecated.This API is ICU internal only.voidsetWeekdays(String[] newWeekdays) Sets wide weekday strings.voidsetWeekdays(String[] newWeekdays, int context, int width) Sets weekday strings.voidsetYearNames(String[] yearNames, int context, int width) Sets cyclic year name strings, for example: "jia-zi", "yi-chou", etc.voidsetZodiacNames(String[] zodiacNames, int context, int width) Sets calendar zodiac name strings, for example: "Rat", "Ox", "Tiger", etc.voidsetZoneStrings(String[][] newZoneStrings) Sets time zone strings.
-
Constructor Details
-
ChineseDateFormatSymbols
Deprecated.ICU 50Construct a ChineseDateFormatSymbols for the defaultFORMATlocale.- See Also:
-
ChineseDateFormatSymbols
Deprecated.ICU 50Construct a ChineseDateFormatSymbols for the provided locale.- Parameters:
locale- the locale
-
ChineseDateFormatSymbols
Deprecated.ICU 50Construct a ChineseDateFormatSymbols for the provided locale.- Parameters:
locale- the locale
-
ChineseDateFormatSymbols
Deprecated.ICU 50Construct a ChineseDateFormatSymbols for the provided calendar and locale.- Parameters:
cal- the Calendarlocale- the locale
-
ChineseDateFormatSymbols
Deprecated.ICU 50Construct a ChineseDateFormatSymbols for the provided calendar and locale.- Parameters:
cal- the Calendarlocale- the locale
-
-
Method Details
-
getLeapMonth
Deprecated.ICU 50 -
initializeData
@Deprecated protected void initializeData(ULocale loc, com.ibm.icu.impl.ICUResourceBundle b, String calendarType) Deprecated.ICU 50Initializes format symbols for the locale and calendar type- Overrides:
initializeDatain classDateFormatSymbols- Parameters:
loc- The locale whose symbols are desired.b- Resource bundle provided externallycalendarType- The calendar type being used
-