class DaysAdjustment implements Resolvable<DateAdjuster>, ImmutableBean, Serializable {

  public static DaysAdjustment ofBusinessDays(int numberOfDays, HolidayCalendarId holidayCalendar) {
    if (numberOfDays == 0) {
      return new DaysAdjustment(0, HolidayCalendarIds.NO_HOLIDAYS, BusinessDayAdjustment.of(FOLLOWING, holidayCalendar));
    }
    return new DaysAdjustment(numberOfDays, holidayCalendar, BusinessDayAdjustment.NONE);
  }

  private  DaysAdjustment(
      int days,
      HolidayCalendarId calendar,
      BusinessDayAdjustment adjustment);

}