Improved sorting of tables and matches.

This commit is contained in:
LevelX2 2014-04-17 16:39:19 +02:00
parent 6e28320493
commit 4e53ff73ea
3 changed files with 50 additions and 6 deletions

View file

@ -255,4 +255,20 @@ public class Table implements Serializable {
this.tournamentSubTable = tournamentSubTable;
}
public Date getStartTime() {
if (isTournament) {
return tournament.getStartTime();
} else {
return match.getStartTime();
}
}
public Date getEndTime() {
if (isTournament) {
return tournament.getEndTime();
} else {
return match.getEndTime();
}
}
}