net.objectlab.kit.datecalc.joda
Class JodaWorkingWeek
java.lang.Object
net.objectlab.kit.datecalc.common.WorkingWeek
net.objectlab.kit.datecalc.joda.JodaWorkingWeek
public class JodaWorkingWeek
- extends WorkingWeek
Immutable class representing a WorkingWeek for the Joda implementation.
- Version:
- $Revision: 334 $ $Date: 2010-03-30 07:06:50 -0400 (Tue, 30 Mar 2010) $
- Author:
- Benoit Xhenseval, $LastChangedBy: marchy $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT
public static final JodaWorkingWeek DEFAULT
JodaWorkingWeek
public JodaWorkingWeek()
JodaWorkingWeek
protected JodaWorkingWeek(byte workingDays)
JodaWorkingWeek
public JodaWorkingWeek(WorkingWeek ww)
isWorkingDay
public boolean isWorkingDay(LocalDate date)
withWorkingDayFromDateTimeConstant
public JodaWorkingWeek withWorkingDayFromDateTimeConstant(boolean working,
int givenDayOfWeek)
- Return a new JodaWorkingWeek if the status for the given day has changed.
- Parameters:
working - true if working daygivenDayOfWeek - e.g. DateTimeConstants.MONDAY, DateTimeConstants.TUESDAY, etc
isWorkingDayFromDateTimeConstant
public boolean isWorkingDayFromDateTimeConstant(int dayOfWeek)
jodaToCalendarDayConstant
public int jodaToCalendarDayConstant(int givenDayOfWeek)
Copyright © 2006-2010 Appendium - Portfolio Financing Platform. All Rights Reserved.