Class AdjustableDateUtils
java.lang.Object
cdm.product.common.schedule.functions.AdjustableDateUtils
TODO - Move this to the CDM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.rosetta.model.lib.records.DateadjustDate(AdjustableDate adjustableDate) static com.rosetta.model.lib.records.DateadjustDate(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.static com.rosetta.model.lib.records.DateadjustDate(AdjustedRelativeDateOffset relativeDate) static com.rosetta.model.lib.records.DateadjustDate(com.rosetta.model.lib.records.Date unadjustedDate, BusinessDayAdjustments businessDayAdjustments) static List<com.rosetta.model.lib.records.Date> adjustDates(AdjustableRelativeOrPeriodicDates adjustableRelativeOrPeriodicDates)
-
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
-
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)
-