Class EmployeeWeekendSequence
- java.lang.Object
-
- org.optaplanner.examples.nurserostering.score.drools.EmployeeWeekendSequence
-
- All Implemented Interfaces:
Comparable<EmployeeWeekendSequence>
public class EmployeeWeekendSequence extends Object implements Comparable<EmployeeWeekendSequence>
-
-
Constructor Summary
Constructors Constructor Description EmployeeWeekendSequence(Employee employee, int firstSundayIndex, int lastSundayIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(EmployeeWeekendSequence other)booleanequals(Object o)EmployeegetEmployee()intgetFirstSundayIndex()intgetLastSundayIndex()intgetWeekendLength()inthashCode()voidsetEmployee(Employee employee)voidsetFirstSundayIndex(int firstSundayIndex)voidsetLastSundayIndex(int lastSundayIndex)StringtoString()
-
-
-
Constructor Detail
-
EmployeeWeekendSequence
public EmployeeWeekendSequence(Employee employee, int firstSundayIndex, int lastSundayIndex)
-
-
Method Detail
-
getEmployee
public Employee getEmployee()
-
setEmployee
public void setEmployee(Employee employee)
-
getFirstSundayIndex
public int getFirstSundayIndex()
-
setFirstSundayIndex
public void setFirstSundayIndex(int firstSundayIndex)
-
getLastSundayIndex
public int getLastSundayIndex()
-
setLastSundayIndex
public void setLastSundayIndex(int lastSundayIndex)
-
compareTo
public int compareTo(EmployeeWeekendSequence other)
- Specified by:
compareToin interfaceComparable<EmployeeWeekendSequence>
-
getWeekendLength
public int getWeekendLength()
-
-