Class HolidayCalendar

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, Calendar

    public class HolidayCalendar
    extends BaseCalendar
    implements Calendar, java.io.Serializable

    This implementation of the Calendar stores a list of holidays (full days that are excluded from scheduling).

    The implementation DOES take the year into consideration, so if you want to exclude July 4th for the next 10 years, you need to add 10 entries to the exclude list.

    Author:
    Sharada Jambula, Juergen Donnerstag
    See Also:
    Serialized Form
    • Constructor Detail

      • HolidayCalendar

        public HolidayCalendar()
      • HolidayCalendar

        public HolidayCalendar​(Calendar baseCalendar)
      • HolidayCalendar

        public HolidayCalendar​(java.util.TimeZone timeZone)
      • HolidayCalendar

        public HolidayCalendar​(Calendar baseCalendar,
                               java.util.TimeZone timeZone)
    • Method Detail

      • addExcludedDate

        public void addExcludedDate​(java.util.Date excludedDate)

        Add the given Date to the list of excluded days. Only the month, day and year of the returned dates are significant.

      • removeExcludedDate

        public void removeExcludedDate​(java.util.Date dateToRemove)
      • getExcludedDates

        public java.util.SortedSet<java.util.Date> getExcludedDates()

        Returns a SortedSet of Dates representing the excluded days. Only the month, day and year of the returned dates are significant.