Commit a70e69a9 authored by João Lino's avatar João Lino

clean comments

parent 57f16d1d
Pipeline #10 canceled with stages
...@@ -82,24 +82,4 @@ public abstract class AbstractMatch implements IMatch, Comparable<IMatch> { ...@@ -82,24 +82,4 @@ public abstract class AbstractMatch implements IMatch, Comparable<IMatch> {
return 0; return 0;
} }
/*@Override
int compare(IMatch match1, IMatch match2) {
int totalScoreMatch1 = match1.getHomeTeamScore().getGoals() + match1.getAwayTeamScore().getGoals();
int totalScoreMatch2 = match2.getHomeTeamScore().getGoals() + match2.getAwayTeamScore().getGoals();
if (totalScoreMatch1 > totalScoreMatch2) {
return 1;
} else if (totalScoreMatch1 < totalScoreMatch2) {
return -1;
} else {
Date startMatch1 = match1.getStartDate();
Date startMatch2 = match2.getStartDate();
if (startMatch1.after(startMatch2)) {
return 1;
} else if(startMatch1.before(startMatch2)) {
return -1;
}
}
return 0;
}*/
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment