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, isSupportedLocale
protected CalendarDataProvider()
public abstract int getFirstDayOfWeek(Locale locale)
locale
。这个信息是需要通过
Calendar
支持操作的周日历领域相关。
locale
-所需的现场
Calendar.SUNDAY
..
Calendar.SATURDAY
,或0如果值不可用的
locale
null
locale
NullPointerException
。
Calendar.getFirstDayOfWeek()
,
First Week
public abstract int getMinimalDaysInFirstWeek(Locale locale)
Calendar
确定一年的第一周。指的是
how Calendar
determines the first week描述。
locale
-所需的现场
locale
null
locale
NullPointerException
。
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.