diff options
author | Clyhtsuriva <aimeric@adjutor.xyz> | 2020-12-11 17:48:10 +0100 |
---|---|---|
committer | Clyhtsuriva <aimeric@adjutor.xyz> | 2020-12-11 17:48:10 +0100 |
commit | 4c37298e054dc1681875a71b181ce0478c577349 (patch) | |
tree | d50e941206f4d9dcea6fcb527441a0f2157a6e80 /Song.java | |
parent | 67db3838608308576ef28c0259dc0584673d27a8 (diff) |
(De)Serialization of the songs
Serialization and Deser now work fine for the songs. We're able to store
arrays.
Diffstat (limited to 'Song.java')
-rw-r--r-- | Song.java | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -15,7 +15,7 @@ public class Song extends MusicalElement{ public void setGenre(Genre genre){this.genre=genre.name();} public String toString() { - return "Title : "+getTitle()+"\nDuration : "+getDuration()+"\nContent : "+getContent()+"\nArtist : "+getArtist()+"\nGenre : "+getGenre(); + return "Id : "+getId()+"\nTitle : "+getTitle()+"\nDuration : "+getDuration()+"\nContent : "+getContent()+"\nArtist : "+getArtist()+"\nGenre : "+getGenre(); // return getTitle()+";"+getDuration()+";"+getContent()+";"+getArtist()+";"+getGenre(); } |