hi
i tried to set the workingdays from monday to sunday. (7days) ==> i tried to set on the DateCalculator the attribute setWorkingWeek but i can not create a WorkingWeek as i wished to because the constructor is protected.
please provide also some most used cominations like you did with DEFAULT_WORKING_DAYS
eg for 7 days or sun-fr.
i like you framework :-)
cheers :-)
Hi
Thanks for your query. We actually had a conf call about this and we found the way that you can do this:
It is quite an explicit mechanism, you can see AbstractBackwardDateCalculatorTest.java
Here is the example:
final WorkingWeek ww = new WorkingWeek().withWorkingDayFromCalendar(false, Calendar.MONDAY).withWorkingDayFromCalendar(
true, Calendar.TUESDAY).withWorkingDayFromCalendar(true, Calendar.WEDNESDAY).withWorkingDayFromCalendar(true,
Calendar.THURSDAY).withWorkingDayFromCalendar(true, Calendar.FRIDAY).withWorkingDayFromCalendar(false,
Calendar.SATURDAY).withWorkingDayFromCalendar(false, Calendar.SUNDAY);
calculator.setWorkingWeek(new JodaWorkingWeek(ww));
Hope this helps
Let us know
Benoit & Marcin