Class EmployeeWeekendSequence

java.lang.Object
org.optaplanner.examples.nurserostering.optional.score.EmployeeWeekendSequence
All Implemented Interfaces:
Comparable<EmployeeWeekendSequence>

public class EmployeeWeekendSequence extends Object implements Comparable<EmployeeWeekendSequence>
  • Constructor Details

    • EmployeeWeekendSequence

      public EmployeeWeekendSequence(Employee employee, int firstSundayIndex, int lastSundayIndex)
  • Method Details

    • 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)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(EmployeeWeekendSequence other)
      Specified by:
      compareTo in interface Comparable<EmployeeWeekendSequence>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getWeekendLength

      public int getWeekendLength()