public class SKDMultiShiftMerger
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
SKDMultiShiftMerger(java.util.Locale l,
java.util.TimeZone tz) |
Modifier and Type | Method and Description |
---|---|
java.util.Date[] |
getShiftWorkTime(java.util.ArrayList<java.util.Date> workperiods,
int index)
Get the shift pairs
|
void |
insertWorkTime(java.util.ArrayList<java.util.Date> workperiods,
int index,
java.util.Date[] workTime)
Insert work time to the list for an index
|
java.util.ArrayList<java.util.Date> |
mergeShifts(java.util.HashMap<java.lang.String,SKDCalendarInfo> calInfoMap,
boolean forWorkingHours)
Merge miltiple shifts and get list of dates
|
void |
updateWorkTime(java.util.ArrayList<java.util.Date> workperiods,
int index,
java.util.Date[] workTime)
Update work time for the index
|
public SKDMultiShiftMerger(java.util.Locale l, java.util.TimeZone tz)
public java.util.ArrayList<java.util.Date> mergeShifts(java.util.HashMap<java.lang.String,SKDCalendarInfo> calInfoMap, boolean forWorkingHours)
calInfoMap
- forWorkingHours
- java.lang.Exception
public java.util.Date[] getShiftWorkTime(java.util.ArrayList<java.util.Date> workperiods, int index)
workperiods
- index
- public void insertWorkTime(java.util.ArrayList<java.util.Date> workperiods, int index, java.util.Date[] workTime)
workperiods
- index
- workTime
- public void updateWorkTime(java.util.ArrayList<java.util.Date> workperiods, int index, java.util.Date[] workTime)
workperiods
- index
- workTime
-