From: David ‘Bombe’ Roden Date: Wed, 18 Apr 2012 04:33:11 +0000 (+0200) Subject: Store the name of a track in the attributes. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f467407857b06d6154ad496c3c55e97b40b17708;p=demoscenemusic.git Store the name 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 78dd4d2..9e721df 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractTrack.java @@ -24,8 +24,6 @@ package net.pterodactylus.demoscenemusic.data; */ public abstract class AbstractTrack extends AbstractBase implements Track { - private String name; - private String style; public AbstractTrack(String id) { @@ -33,11 +31,11 @@ public abstract class AbstractTrack extends AbstractBase implements Track { } public String name() { - return name; + return value("name", String.class).get(); } public Track name(String name) { - this.name = name; + value("name", String.class).set(name); return this; }