From: David ‘Bombe’ Roden Date: Wed, 18 Apr 2012 04:35:21 +0000 (+0200) Subject: Store artist of a track in the attributes. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=29fffd04a69eee124a00f3479493ea27240afe59;p=demoscenemusic.git Store artist of a track in the attributes. --- diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java b/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java index 9e721df..7c19f8c 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java @@ -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; + } }