Added mostplayed counter

This commit is contained in:
2015-06-18 20:17:23 +02:00
parent 1520a6a104
commit 3f22402bc4
+10
View File
@@ -155,4 +155,14 @@ public class Song implements Comparable<Song>{
public int compareTo(Song s) {
return getTitle().compareTo(s.getTitle());
}
public int getTimesPlayed()
{
int timesPlayed = 0;
for(SongInstance s : songs)
{
timesPlayed += s.getTimesPlayed();
}
return timesPlayed;
}
}