Class ShiftDate
- java.lang.Object
-
- org.optaplanner.examples.common.domain.AbstractPersistable
-
- org.optaplanner.examples.nurserostering.domain.ShiftDate
-
- All Implemented Interfaces:
Comparable<ShiftDate>
public class ShiftDate extends AbstractPersistable implements Comparable<ShiftDate>
-
-
Field Summary
-
Fields inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
id
-
-
Constructor Summary
Constructors Constructor Description ShiftDate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ShiftDate o)LocalDategetDate()intgetDayIndex()DayOfWeekgetDayOfWeek()StringgetLabel()List<Shift>getShiftList()intgetWeekendSundayIndex()voidsetDate(LocalDate date)voidsetDayIndex(int dayIndex)voidsetShiftList(List<Shift> shiftList)StringtoString()-
Methods inherited from class org.optaplanner.examples.common.domain.AbstractPersistable
getId, setId
-
-
-
-
Method Detail
-
getDayIndex
public int getDayIndex()
-
setDayIndex
public void setDayIndex(int dayIndex)
-
getDate
public LocalDate getDate()
-
setDate
public void setDate(LocalDate date)
-
getDayOfWeek
public DayOfWeek getDayOfWeek()
-
getWeekendSundayIndex
public int getWeekendSundayIndex()
-
getLabel
public String getLabel()
-
toString
public String toString()
- Overrides:
toStringin classAbstractPersistable
-
compareTo
public int compareTo(ShiftDate o)
- Specified by:
compareToin interfaceComparable<ShiftDate>
-
-