Package org.drip.analytics.eventday
Class Static
java.lang.Object
org.drip.analytics.eventday.Base
org.drip.analytics.eventday.Static
public class Static extends Base
Static implements a complete date as a specific holiday.
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = Date, Cash Flow, and Cash Flow Period Measure Generation Utilities
- Package = Fixed, Variable, and Custom Holiday Creation
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description Static(JulianDate dt, java.lang.String strDescription)
Construct a static holiday from the date and the description -
Method Summary
Modifier and Type Method Description static Static
CreateFromDateDescription(java.lang.String strDate, java.lang.String strDescription)
Create a static holiday from the date string and the descriptionint
dateInYear(int iYear, boolean bAdjusted)
Generate the full date specific to the input yearMethods inherited from class org.drip.analytics.eventday.Base
description, rollHoliday
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Static
Construct a static holiday from the date and the description- Parameters:
dt
- DatestrDescription
- Description- Throws:
java.lang.Exception
- Thrown if the Inputs are invalid
-
-
Method Details
-
CreateFromDateDescription
public static final Static CreateFromDateDescription(java.lang.String strDate, java.lang.String strDescription)Create a static holiday from the date string and the description- Parameters:
strDate
- Date stringstrDescription
- Description- Returns:
- StaticHoliday instance
-
dateInYear
public int dateInYear(int iYear, boolean bAdjusted)Description copied from class:Base
Generate the full date specific to the input year- Specified by:
dateInYear
in classBase
- Parameters:
iYear
- Input YearbAdjusted
- Whether adjustment is desired- Returns:
- The full date
-