From 29fffd04a69eee124a00f3479493ea27240afe59 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 18 Apr 2012 06:35:21 +0200 Subject: [PATCH] Store artist of a track in the attributes. --- .../net/pterodactylus/demoscenemusic/data/AbstractTrack.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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; + } } -- 2.7.4