Class QatarBanksHoliday

java.lang.Object
org.holiday.calendar.observance.AbstractObservance
org.holiday.calendar.observance.qa.QatarBanksHoliday
All Implemented Interfaces:
Function<Integer,LocalDate>, Predicate<Integer>, Observance

public class QatarBanksHoliday extends AbstractObservance
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 Details

    • QatarBanksHoliday

      public QatarBanksHoliday()
  • Method Details

    • computeDate

      protected LocalDate computeDate(int year)
      Description copied from class: AbstractObservance
      Compute the date for this observance in the given year. Only called when AbstractObservance.isValidYear(int) returns true.
      Specified by:
      computeDate in class AbstractObservance
      Parameters:
      year - the year for which to compute the date
      Returns:
      computed holiday date
    • isValidYear

      protected boolean isValidYear(int year)
      Description copied from class: AbstractObservance
      Determine whether this observance applies in the given year. Defaults to true (all years are valid).
      Overrides:
      isValidYear in class AbstractObservance
      Parameters:
      year - the year to test
      Returns:
      true if this observance applies