Removed compareTo because it has moved to GreedyMatchingAlgorithm#Pair#compareTo
This commit is contained in:
parent
686347b64c
commit
09dbafb5b6
@ -8,7 +8,7 @@ import se.su.dsv.scipro.data.dataobjects.ProjectClass;
|
||||
/**
|
||||
* A class that specifies how available a supervisor is(in terms of thesis supervision)
|
||||
*/
|
||||
public class Availability implements Serializable, Comparable<Availability> {
|
||||
public class Availability implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ -53,17 +53,6 @@ public class Availability implements Serializable, Comparable<Availability> {
|
||||
public void setNumMatched(Long num) {
|
||||
numMatched = num;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int compareTo(Availability availability) {
|
||||
if(getAvailability() > availability.getAvailability()) {
|
||||
return -1;
|
||||
} else if(availability.getAvailability() > getAvailability()) {
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user