public class WorkingWeek extends Object
Modifier and Type | Field and Description |
---|---|
static WorkingWeek |
ARABIC_WEEK |
static WorkingWeek |
DEFAULT |
Modifier | Constructor and Description |
---|---|
|
WorkingWeek()
Default Working Week Monday -> Friday.
|
protected |
WorkingWeek(byte workingDays) |
Modifier and Type | Method and Description |
---|---|
protected int |
adjustDay(int dayOfWeek) |
byte |
getWorkingDays() |
WorkingWeek |
intersection(WorkingWeek ww)
Create a new calendar with the intersection of WORKING days.
|
boolean |
isWorkingDay(Calendar cal) |
boolean |
isWorkingDay(Date date) |
boolean |
isWorkingDayFromCalendar(int dayOfWeek) |
WorkingWeek |
withWorkingDayFromCalendar(boolean working,
int dayOfWeek)
If the value for the given day has changed, return a NEW WorkingWeek.
|
public static final WorkingWeek DEFAULT
public static final WorkingWeek ARABIC_WEEK
public WorkingWeek()
protected WorkingWeek(byte workingDays)
public WorkingWeek intersection(WorkingWeek ww)
ww
- public boolean isWorkingDayFromCalendar(int dayOfWeek)
public boolean isWorkingDay(Date date)
public boolean isWorkingDay(Calendar cal)
protected int adjustDay(int dayOfWeek)
public WorkingWeek withWorkingDayFromCalendar(boolean working, int dayOfWeek)
working
- true if working daydayOfWeek
- e.g. Calendar.MONDAY, Calendar.TUESDAY, etcWorkingWeek
with the working
day setpublic byte getWorkingDays()
Copyright © 2006–2022 Appendium - Portfolio Financing Platform. All rights reserved.