WebCab Bonds for .NET v2.01

BudapestBusinessCalendar Members

BudapestBusinessCalendar overview

Public Static Methods

getInstance The only way of getting a BudapestBusinessCalendar instance.

Public Instance Properties

Name (inherited from AbstractBusinessCalendar)

Public Instance Methods

daysBetween (inherited from AbstractBusinessCalendar) Calculates the number of (integer) days between two (normalized) dates. For example, if you provide a data 1 Jan 2003 00:01, as the start date and 2 Jan 2003 23:59, as the end date, then the number of days returned will be 1.
daysBetweenAsPercentAtYear (inherited from AbstractBusinessCalendar)
daysOfWeekBetween (inherited from AbstractBusinessCalendar) Calculates the number of a certain day of the week which lies between two dates. For example, if the start date is 1 Jan 2003 and the end date is 31 Dec 2003, and the day of the week we select is Monday then the method will return 52. This is because the number of Monday's between the start date 1 Jan 2003, and the end date 31 Dec 2003, including the end dates is 52.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
isHoliday Returns true if the specified date calendar is a holiday day.
isWorkingDay (inherited from AbstractBusinessCalendar) This method evaluates whether the specified date calendar is a working day or a holiday (i.e. a non-working day). It is important to be able to distinguish between working and non-working days because generally it is only on working days that cash flows can take place, therefore it is only on working days that dividends/coupons can be paid, and contracts can be settled.
nextHoliday (inherited from AbstractBusinessCalendar) Returns the next holiday day after a given date.
nextPaymentDate (inherited from AbstractBusinessCalendar) Returns the index of the element of an array of dates which is the date which is after and closest to a given date.
nextWorkingDay (inherited from AbstractBusinessCalendar) Returns the next working day after a given date.
previousPaymentDate (inherited from AbstractBusinessCalendar) Returns the index of the element of an array of dates which is the date which is before and closest to a given date.
ToString (inherited from Object)Returns a String that represents the current Object.
workingDaysBetween (inherited from AbstractBusinessCalendar)
yearsBetween (inherited from AbstractBusinessCalendar)

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

Protected Internal Instance Methods

checkDayOfWeek (inherited from AbstractBusinessCalendar) Evaluates whether a given date in a weekday (i.e. one of the following days Monday, Tuesday, Wednesday, Thursday, Friday) or a weekend day (i.e. one of the following dates Saturday or Sunday). The dayOfWeek will take one of the following values:
  • 1 = Calendar.MONDAY
  • 2 = Calendar.TUESDAY
  • 3 = Calendar.WEDNESDAY
  • 4 = Calendar.THURSDAY
  • 5 = Calendar.FRIDAY
  • 6 = Calendar.SATURDAY
  • 7 = Calendar.SUNDAY
checkOrder (inherited from AbstractBusinessCalendar) This methods checks whether the first data given start date is before or after the second date given end date. It is important to preserve the order of dates passed to methods and we provide this method to assist in the checking of the order of dates within your applications.

See Also

BudapestBusinessCalendar Class | WebCab.BusinessCalendar.Cities Namespace