private static LocalDate _moveDate ( final MovingCondition aMoveCond , final LocalDate aDate ) { final DayOfWeek nWeekday = XMLHolidayHelper . getWeekday ( aMoveCond . getWeekday ( ) ) ; final int nDirection = aMoveCond . getWith ( ) == With . NEXT ? 1 : - 1 ; LocalDate aMovedDate = aDate ; while ( aMovedDate . getDayOfWeek ( ) != nWeekday ) { aMovedDate = aMovedDate . plusDays ( nDirection ) ; } return aMovedDate ; }
Moves the date using the FixedMoving information