public class ExamRoomComparator extends Object implements Comparator<ExamRoomPlacement>
Exam.hasAltSeating()
. Constructor and Description |
---|
ExamRoomComparator(Exam exam,
boolean asc)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compare(ExamRoomPlacement r1,
ExamRoomPlacement r2)
Compare two rooms based on their normal/alternative seating size
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
public ExamRoomComparator(Exam exam, boolean asc)
exam
- exam for which rooms are to be comparedasc
- room orderpublic int compare(ExamRoomPlacement r1, ExamRoomPlacement r2)
compare
in interface Comparator<ExamRoomPlacement>
Copyright © 2016 UniTime LLC. All Rights Reserved.