/** * Moves the date using the FixedMoving information * * @param mc the moving condition * @param fixed the date to move * @return the eventually moved date */ private LocalDate moveDate(MovingCondition mc, LocalDate fixed) { DayOfWeek weekday = xmlUtil.getWeekday(mc.getWeekday()); return fixed.with(mc.getWith() == With.NEXT ? nextOrSame(weekday) : previousOrSame(weekday)); }