Class EmployeeWeekendSequence
java.lang.Object
org.optaplanner.examples.nurserostering.optional.score.EmployeeWeekendSequence
- All Implemented Interfaces:
Comparable<EmployeeWeekendSequence>
-
Constructor Summary
ConstructorsConstructorDescriptionEmployeeWeekendSequence(Employee employee, int firstSundayIndex, int lastSundayIndex) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(EmployeeWeekendSequence other) booleanintintintinthashCode()voidsetEmployee(Employee employee) voidsetFirstSundayIndex(int firstSundayIndex) voidsetLastSundayIndex(int lastSundayIndex) toString()
-
Constructor Details
-
EmployeeWeekendSequence
-
-
Method Details
-
getEmployee
-
setEmployee
-
getFirstSundayIndex
public int getFirstSundayIndex() -
setFirstSundayIndex
public void setFirstSundayIndex(int firstSundayIndex) -
getLastSundayIndex
public int getLastSundayIndex() -
setLastSundayIndex
public void setLastSundayIndex(int lastSundayIndex) -
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<EmployeeWeekendSequence>
-
toString
-
getWeekendLength
public int getWeekendLength()
-