public interface WeekdataProvider
This SPI-interface enables the access to localized
week rules and is instantiated via a ServiceLoader-mechanism.
If there is no external WeekdataProvider then Time4J will use
an internal implementation which is based on all informations contained
in the JDK and also the CLDR-data of unicode consortium. Especially
the data which define a weekend will be preferably read from the resource
file "data/weekend.data".
ServiceLoader| Modifier and Type | Method and Description |
|---|---|
int |
getEndOfWeekend(Locale country)
Defines the last day of weekend.
|
int |
getFirstDayOfWeek(Locale country)
Defines the first day of a calendar week.
|
int |
getMinimalDaysInFirstWeek(Locale country)
Defines the minimum count of days which the first calendar week
of the year or month must contain.
|
int |
getStartOfWeekend(Locale country)
Defines the first day of weekend.
|
int getFirstDayOfWeek(Locale country)
Defines the first day of a calendar week.
country - country or regionint getMinimalDaysInFirstWeek(Locale country)
Defines the minimum count of days which the first calendar week of the year or month must contain.
country - country or region1 - 7int getStartOfWeekend(Locale country)
Defines the first day of weekend.
country - country or regionint getEndOfWeekend(Locale country)
Defines the last day of weekend.
country - country or regionCopyright © 2014–2015. All rights reserved.