Package cdm.base.datetime.functions
Class AddBusinessDays
java.lang.Object
cdm.base.datetime.functions.AddBusinessDays
- All Implemented Interfaces:
com.rosetta.model.lib.functions.RosettaFunction
- Direct Known Subclasses:
AddBusinessDays.AddBusinessDaysDefault
public abstract class AddBusinessDays
extends Object
implements com.rosetta.model.lib.functions.RosettaFunction
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AddBusinessDaysprotected AddDaysprotected IsBusinessDay -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract com.rosetta.model.lib.records.DatedoEvaluate(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters) protected abstract com.rosetta.model.lib.mapper.MapperS<Boolean> done(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters) com.rosetta.model.lib.records.Dateevaluate(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters) protected abstract com.rosetta.model.lib.mapper.MapperS<Boolean> isGoodBusinessDay(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters) protected abstract com.rosetta.model.lib.mapper.MapperS<Boolean> isShiftedGood(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters) protected abstract com.rosetta.model.lib.mapper.MapperS<com.rosetta.model.lib.records.Date> newDate(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters) protected abstract com.rosetta.model.lib.mapper.MapperS<Integer> newOffset(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters) protected abstract com.rosetta.model.lib.mapper.MapperS<Integer> newShift(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters) protected abstract com.rosetta.model.lib.mapper.MapperS<Integer> shift(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters) protected abstract com.rosetta.model.lib.mapper.MapperS<com.rosetta.model.lib.records.Date> shiftedByOne(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.rosetta.model.lib.functions.RosettaFunction
toBuilder, toBuilder, toBuilder
-
Field Details
-
addBusinessDays
-
addDays
-
isBusinessDay
-
-
Constructor Details
-
AddBusinessDays
public AddBusinessDays()
-
-
Method Details
-
evaluate
public com.rosetta.model.lib.records.Date evaluate(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters) - Parameters:
originalDate- date to be shifted. If not a good business day, a supplied shift of 0 will shift it to the next business dayoffsetBusinessDays- number of business days to shift the original datebusinessCenters- business centers to use in the shifting- Returns:
- shiftedDate
-
doEvaluate
protected abstract com.rosetta.model.lib.records.Date doEvaluate(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters) -
isGoodBusinessDay
protected abstract com.rosetta.model.lib.mapper.MapperS<Boolean> isGoodBusinessDay(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters) -
shift
protected abstract com.rosetta.model.lib.mapper.MapperS<Integer> shift(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters) -
shiftedByOne
protected abstract com.rosetta.model.lib.mapper.MapperS<com.rosetta.model.lib.records.Date> shiftedByOne(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters) -
isShiftedGood
protected abstract com.rosetta.model.lib.mapper.MapperS<Boolean> isShiftedGood(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters) -
newShift
protected abstract com.rosetta.model.lib.mapper.MapperS<Integer> newShift(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters) -
newOffset
protected abstract com.rosetta.model.lib.mapper.MapperS<Integer> newOffset(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters) -
done
protected abstract com.rosetta.model.lib.mapper.MapperS<Boolean> done(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters) -
newDate
protected abstract com.rosetta.model.lib.mapper.MapperS<com.rosetta.model.lib.records.Date> newDate(com.rosetta.model.lib.records.Date originalDate, Integer offsetBusinessDays, List<BusinessCenterEnum> businessCenters)
-