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.NullPointerException
- if locale
is null
.locale
- the desired localeCalendar.SUNDAY
..
Calendar.SATURDAY
,
or 0 if the value isn't available for the locale
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.NullPointerException
- if locale
is null
.locale
- the desired localelocale
Calendar.getMinimalDaysInFirstWeek()
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2016 aicas GmbH. All Rights Reserved.