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
Returns the first day of a week in the given
locale.
|
abstract int |
getMinimalDaysInFirstWeek(Locale
Returns the minimal number of days required in the first week of a year.
|
getAvailableLocales, isSupportedLocaleprotected CalendarDataProvider()
public abstract int getFirstDayOfWeek(Localelocale)
locale. This information is required by
Calendar to support operations on the week-related calendar fields.
locale - the desired locale
Calendar.SUNDAY ..
Calendar.SATURDAY , or 0 if the value isn't available for the
locale
NullPointerException - if
locale is
null.
Calendar.getFirstDayOfWeek() ,
First Week
public abstract int getMinimalDaysInFirstWeek(Localelocale)
Calendar to determine the first week of a year. Refer to the description of
how Calendar determines the first week.
locale - the desired locale
locale
NullPointerException - if
locale is
null.
Calendar.getMinimalDaysInFirstWeek()