Class Static

java.lang.Object
org.drip.analytics.eventday.Base
org.drip.analytics.eventday.Static

public class Static
extends Base
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 description
    int dateInYear​(int iYear, boolean bAdjusted)
    Generate the full date specific to the input year

    Methods 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

      public Static​(JulianDate dt, java.lang.String strDescription) throws java.lang.Exception
      Construct a static holiday from the date and the description
      Parameters:
      dt - Date
      strDescription - 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 string
      strDescription - 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 class Base
      Parameters:
      iYear - Input Year
      bAdjusted - Whether adjustment is desired
      Returns:
      The full date