public abstract class CalendarDataProvider extends LocaleServiceProvider
Calendar
parameters.Modifier | Constructor | Description |
---|---|---|
protected |
Sole constructor. |
Modifier and Type | Method | Description |
---|---|---|
abstract int |
getFirstDayOfWeek |
Returns the first day of a week in the given locale . |
abstract int |
getMinimalDaysInFirstWeek |
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
.public 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
.
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/spi/CalendarDataProvider.html