DefaultHolidaySchedule Class

This is the default implementation of HolidaySchedule. For maximum efficiency, this implementation caches all provided holidays so that the isHoliday() method returns as quickly as possible.

Definition

Namespace: com.ftlabs.fisa
Assembly: FISA.NET (in FISA.NET.dll) Version: 1.16.0.13 (1.16.0.13)
C#
public class DefaultHolidaySchedule : HolidaySchedule
Inheritance
Object    DefaultHolidaySchedule
Implements
HolidaySchedule

Constructors

DefaultHolidaySchedule Creates a new instance of DefaultHolidaySchedule without any holidays.
DefaultHolidaySchedule(String) Creates a new instance of DefaultHolidaySchedule populated with dates contained in the provided file.
DefaultHolidaySchedule(TextReader) Creates a new instance of DefaultHolidaySchedule populated with dates provided by a TextReader.

Methods

addHoliday Add a holiday date to this schedule.
clear Clear all holidays from this schedule.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
isHoliday Determines if the provided date is a holiday.
loadHolidays Adds dates provided by an TextReader to this DefaultHolidaySchedule.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also