public abstract class CalendarDataProvider extends LocaleServiceProvider
Calendar
parameters.CalendarNameProvider
Modifier | Constructor and Description |
---|---|
protected |
CalendarDataProvider()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract int |
getFirstDayOfWeek(Locale locale)
Returns the first day of a week in the given
locale . |
abstract int |
getMinimalDaysInFirstWeek(Locale locale)
Returns the minimal number of days required in the first week of a
year.
|
getAvailableLocales, isSupportedLocale
protected CalendarDataProvider()
public abstract int getFirstDayOfWeek(Locale locale)
locale
. This
information is required by Calendar
to support operations on the
week-related calendar fields.locale
- the desired localeCalendar.SUNDAY
..
Calendar.SATURDAY
,
or 0 if the value isn't available for the locale
NullPointerException
- if locale
is null
.Calendar.getFirstDayOfWeek()
,
First Weekpublic abstract int getMinimalDaysInFirstWeek(Locale locale)
Calendar
to determine the
first week of a year. Refer to the description of how Calendar
determines
the first week.locale
- the desired localelocale
NullPointerException
- if locale
is 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, 2015, Oracle and/or its affiliates. All rights reserved.