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

index 78dd4d2..9e721df 100644 (file)
@@ -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;
        }