public class Weekend
extends java.lang.Object
| Constructor and Description |
|---|
Weekend(int[] aiDay)
Create the weekend instance object from the array of the weekend days
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
days()
Retrieve the weekend days
|
boolean |
isLeftWeekend(int iDate)
Is the given date a left weekend day
|
boolean |
isRightWeekend(double dblDate)
Is the given date a right weekend day
|
boolean |
isWeekend(int iDate)
Is the given date a weekend day
|
static Weekend |
StandardWeekend()
Create a Weekend Instance with SATURDAY and SUNDAY
|
public Weekend(int[] aiDay)
throws java.lang.Exception
aiDay - Array of the weekend daysjava.lang.Exception - Thrown if cannot properly de-serialize Weekendpublic static final Weekend StandardWeekend()
public int[] days()
public boolean isLeftWeekend(int iDate)
iDate - Datepublic boolean isRightWeekend(double dblDate)
dblDate - Datepublic boolean isWeekend(int iDate)
iDate - Date