public interface PublicHolidays
The provided calendars in the methods refer to complete days, months or even years. Therefore
implementations should ignore the timezone and the time as well as the day or month if
appropriate. See
CalendarTools.equals(Calendar, Calendar, int).
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPublicHolidayName(java.util.Calendar day)
Returns the name of the public holiday represented by the designated
calendar-instance.
|
java.util.Calendar[] |
getPublicHolidaysForMonth(java.util.Calendar month)
Returns the public holidays in the month represented by the designated
calendar with respect to the local conventions.
|
java.util.Calendar[] |
getPublicHolidaysForYear(java.util.Calendar year)
Returns the public holidays in the year represented by the designated
calendar with respect to the local conventions.
|
int[] |
getWorkingWeekdays()
Returns the
day of weeks that are working days
with respect to the local conventions. |
boolean |
isFloatingHoliday(java.util.Calendar day)
Gets whether the designated calendar represents a day which is a public
holiday with respect to the local conventions and if so, whether it is a
floating holiday, meaning the day of the year changes every year (in
contrast to a fixed holiday).
|
boolean |
isPublicHoliday(java.util.Calendar day)
Returns whether the designated calendar represents a day which is a public
holiday with respect to the local conventions.
|
boolean |
isWorkingDay(java.util.Calendar day)
Returns whether the designated calendar represents a working day with
respect to the local calendar, that is with respect to weekends and public
holidays.
|
int[] getWorkingWeekdays()
day of weeks that are working days
with respect to the local conventions. The order corresponds to the normal
order of days in the week and respects the
Calendar.getFirstDayOfWeek().day of weeks that are working days
with respect to the local conventions.boolean isWorkingDay(java.util.Calendar day)
day - A calendar representing a specific day.boolean isPublicHoliday(java.util.Calendar day)
day - A calendar representing a specific day.boolean isFloatingHoliday(java.util.Calendar day)
day - A calendar representing a specific day.java.lang.String getPublicHolidayName(java.util.Calendar day)
day - A calendar representing a specific day.java.util.Calendar[] getPublicHolidaysForMonth(java.util.Calendar month)
month - A calendar representing a month in a specific year.java.util.Calendar[] getPublicHolidaysForYear(java.util.Calendar year)
year - A calendar representing a specific year.