java.lang.Object
org.holiday.calendar.observance.AbstractObservance
org.holiday.calendar.observance.qa.QatarBanksHoliday
Observance of the Qatar Banks Holiday — the first Sunday of March.
Mandated by Cabinet Decision No. (33) of 2009 for all banks, money exchange outlets, investment and financial companies, insurance firms, and insurance broker companies operating in the State of Qatar. Sunday is a working day in Qatar (Friday + Saturday weekend), so this closure falls on the first business day of March in most years.
This holiday applies to the QAR (QSE/QCB) settlement calendar only;
it is not a gazetted national public holiday and is not included in QA.
- Author:
- Dave Joyce
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LocalDatecomputeDate(int year) Compute the date for this observance in the given year.protected booleanisValidYear(int year) Determine whether this observance applies in the given year.Methods inherited from class org.holiday.calendar.observance.AbstractObservance
apply, test
-
Constructor Details
-
QatarBanksHoliday
public QatarBanksHoliday()
-
-
Method Details
-
computeDate
Description copied from class:AbstractObservanceCompute the date for this observance in the given year. Only called whenAbstractObservance.isValidYear(int)returnstrue.- Specified by:
computeDatein classAbstractObservance- Parameters:
year- the year for which to compute the date- Returns:
- computed holiday date
-
isValidYear
protected boolean isValidYear(int year) Description copied from class:AbstractObservanceDetermine whether this observance applies in the given year. Defaults totrue(all years are valid).- Overrides:
isValidYearin classAbstractObservance- Parameters:
year- the year to test- Returns:
trueif this observance applies
-