java.lang.Object
overit.geocallapp.wfm.systemsettings.bl.calendar.YearCalendar
All Implemented Interfaces:
Serializable

public class YearCalendar extends Object implements Serializable
See Also:
  • Constructor Details

    • YearCalendar

      public YearCalendar()
  • Method Details

    • getYear

      public Long getYear()
    • setYear

      public void setYear(Long year)
    • getHolidays

      public Collection<Date> getHolidays()
    • addHoliday

      public boolean addHoliday(Date holidayDate)
    • addHolidays

      public boolean addHolidays(Collection<Date> holidayDates)
    • removeHoliday

      public boolean removeHoliday(Date holiday)
    • isHoliday

      public boolean isHoliday(Date date)
    • getHolidays

      public Collection<Date> getHolidays(Date startDate, Date endDate)
      Method that checks if a day within a range of dates is a holiday and adds it to the collection.
      Parameters:
      startDate - the start date
      endDate - the end date
      Returns:
      the holidays within the date range.