cdm.base.datetime.functions.BusinessCenterHolidays Maven / Gradle / Ivy
package cdm.base.datetime.functions;
import cdm.base.datetime.BusinessCenterEnum;
import com.google.inject.ImplementedBy;
import com.rosetta.model.lib.functions.RosettaFunction;
import com.rosetta.model.lib.records.Date;
import java.util.ArrayList;
import java.util.List;
@ImplementedBy(BusinessCenterHolidays.BusinessCenterHolidaysDefault.class)
public abstract class BusinessCenterHolidays implements RosettaFunction {
/**
* @param businessCenter
* @return holidayDates
*/
public List evaluate(BusinessCenterEnum businessCenter) {
List holidayDates = doEvaluate(businessCenter);
return holidayDates;
}
protected abstract List doEvaluate(BusinessCenterEnum businessCenter);
public static class BusinessCenterHolidaysDefault extends BusinessCenterHolidays {
@Override
protected List doEvaluate(BusinessCenterEnum businessCenter) {
List holidayDates = new ArrayList<>();
return assignOutput(holidayDates, businessCenter);
}
protected List assignOutput(List holidayDates, BusinessCenterEnum businessCenter) {
return holidayDates;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy