Store artist of a track in the attributes.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 18 Apr 2012 04:35:21 +0000 (06:35 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 18 Apr 2012 04:35:21 +0000 (06:35 +0200)
src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java

index 9e721df..7c19f8c 100644 (file)
@@ -39,8 +39,13 @@ public abstract class AbstractTrack extends AbstractBase implements Track {
                return this;
        }
 
-       public abstract Artist artist();
+       public Artist artist() {
+               return value("artist", Artist.class).get();
+       }
 
-       public abstract Track artist(Artist artist);
+       public Track artist(Artist artist) {
+               value("artist", Artist.class).set(artist);
+               return this;
+       }
 
 }