Class AdjustableDateUtils

java.lang.Object
cdm.product.common.schedule.functions.AdjustableDateUtils

public class AdjustableDateUtils extends Object
TODO - Move this to the CDM
  • Constructor Details

    • AdjustableDateUtils

      public AdjustableDateUtils()
  • Method Details

    • adjustDate

      public static com.rosetta.model.lib.records.Date adjustDate(AdjustableOrRelativeDate adjustableOrRelativeDate)
      If the input date is already adjusted, then return it for both adjustable and relative dates If the input date is unadjusted, then adjust it using the BusinessDayConvention and basic weekdays holiday calendar If the input date is relative, then it will not be adjusted. Not supported yet.
      Parameters:
      adjustableOrRelativeDate -
      Returns:
      the adjusted date
    • adjustDate

      public static com.rosetta.model.lib.records.Date adjustDate(AdjustableDate adjustableDate)
    • adjustDate

      public static com.rosetta.model.lib.records.Date adjustDate(com.rosetta.model.lib.records.Date unadjustedDate, BusinessDayAdjustments businessDayAdjustments)
    • adjustDate

      public static com.rosetta.model.lib.records.Date adjustDate(AdjustedRelativeDateOffset relativeDate)
    • adjustDates

      public static List<com.rosetta.model.lib.records.Date> adjustDates(AdjustableRelativeOrPeriodicDates adjustableRelativeOrPeriodicDates)