public class StudentByPriorityRequestDate extends StudentByRequestDate
CourseRequest.getTimeStamp()
. If the time stamp
is the same (or not set), fall back to the number of choices
(student with fewer choices first).Constructor and Description |
---|
StudentByPriorityRequestDate(DataProperties config) |
Modifier and Type | Method and Description |
---|---|
int |
compare(Student s1,
Student s2) |
getRequestDate
avgNrChoices, getRequestPriority, isCriticalOnly, isReverse, order, setCriticalOnly, setRequestPriority, setReverse
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public StudentByPriorityRequestDate(DataProperties config)
public int compare(Student s1, Student s2)
compare
in interface Comparator<Student>
compare
in class StudentByRequestDate