public abstract class CalendarDataProvider extends LocaleServiceProvider
Calendar参数。
CalendarNameProvider
| Modifier | Constructor and Description |
|---|---|
protected |
CalendarDataProvider()
唯一的构造函数。
|
| Modifier and Type | Method and Description |
|---|---|
abstract int |
getFirstDayOfWeek(Locale locale)
在给定的
locale中返回一周的第一天。
|
abstract int |
getMinimalDaysInFirstWeek(Locale locale)
返回一年中第一周所需的最少天数。
|
getAvailableLocales, isSupportedLocalepublic abstract int getFirstDayOfWeek(Locale locale)
locale中返回一周的第一天。
此信息由需要Calendar支持在一周有关日历字段的操作。
locale - 所需的语言环境
Calendar.SUNDAY .. Calendar.SATURDAY ,或0如果该值不可用于locale
NullPointerException - 如果
locale是
null 。
Calendar.getFirstDayOfWeek() ,
First Week
public abstract int getMinimalDaysInFirstWeek(Locale locale)
locale - 所需的语言环境
locale
NullPointerException - 如果
locale是
null 。
Calendar.getMinimalDaysInFirstWeek()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.