Class ShiftDate
java.lang.Object
org.optaplanner.examples.common.domain.AbstractPersistable
org.optaplanner.examples.nurserostering.domain.ShiftDate
- All Implemented Interfaces:
Comparable<ShiftDate>,Labeled
-
Field Summary
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetDate()intgetLabel()intvoidvoidsetDayIndex(int dayIndex) voidsetShiftList(List<Shift> shiftList) toString()Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
getId, setId
-
Constructor Details
-
ShiftDate
public ShiftDate() -
ShiftDate
public ShiftDate(long id) -
ShiftDate
-
-
Method Details
-
getDayIndex
public int getDayIndex() -
setDayIndex
public void setDayIndex(int dayIndex) -
getDate
-
setDate
-
getDayOfWeek
-
getShiftList
-
setShiftList
-
getWeekendSundayIndex
public int getWeekendSundayIndex() -
getLabel
-
toString
- Overrides:
toStringin classAbstractPersistable
-
compareTo
- Specified by:
compareToin interfaceComparable<ShiftDate>
-