public class Locale
extends java.lang.Object
Constructor and Description |
---|
Locale()
Construct an empty LocHolidays instance
|
Modifier and Type | Method and Description |
---|---|
boolean |
addFixedHoliday(int iDay,
int iMonth,
java.lang.String strDescription)
Add a fixed holiday from the day and month
|
boolean |
addFloatingHoliday(int iWeekInMonth,
int iWeekDay,
int iMonth,
boolean bFromFront,
java.lang.String strDescription)
Add a floating holiday from the week in month, the day in week, the month, and whether holidays are
calculated from front/back.
|
boolean |
addStandardWeekend()
Add the regular SATURDAY/SUNDAY weekend
|
boolean |
addStaticHoliday(JulianDate dt,
java.lang.String strDescription)
Add the given date as a static holiday
|
boolean |
addStaticHoliday(java.lang.String strDate,
java.lang.String strDescription)
Add the given string date as a static holiday
|
boolean |
addWeekend(int[] aiDays)
Add the array of weekend days
|
java.util.Set<Base> |
holidays()
Return the set of week day holidays
|
Weekend |
weekendDays()
Return the weekend
|
public boolean addWeekend(int[] aiDays)
aiDays
- Array of weekend dayspublic boolean addStandardWeekend()
public boolean addStaticHoliday(JulianDate dt, java.lang.String strDescription)
dt
- DatestrDescription
- Descriptionpublic boolean addStaticHoliday(java.lang.String strDate, java.lang.String strDescription)
strDate
- Date stringstrDescription
- Descriptionpublic boolean addFixedHoliday(int iDay, int iMonth, java.lang.String strDescription)
iDay
- DayiMonth
- MonthstrDescription
- Descriptionpublic boolean addFloatingHoliday(int iWeekInMonth, int iWeekDay, int iMonth, boolean bFromFront, java.lang.String strDescription)
iWeekInMonth
- Week in the MonthiWeekDay
- Day in the weekiMonth
- MonthbFromFront
- Holidays are calculated from the start of the month (True)strDescription
- Descriptionpublic Weekend weekendDays()
public java.util.Set<Base> holidays()