Use collection instead of set for styles.
[demoscenemusic.git] / src / main / java / net / pterodactylus / demoscenemusic / data / Track.java
index 77a350a..cc1a1c9 100644 (file)
 
 package net.pterodactylus.demoscenemusic.data;
 
+import java.util.Collection;
+import java.util.List;
+
 /**
  * TODO
  *
  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
  */
-public class Track extends Base {
+public interface Track extends Base {
 
-       private String name;
-       private String style;
+       public String name();
 
-       public Track(String id) {
-               super(id);
-       }
+       public Track name(String name);
 
-       public String name() {
-               return name;
-       }
+       public List<Artist> artists();
 
-       public Track name(String name) {
-               this.name = name;
-               return this;
-       }
+       public Track artists(List<Artist> artists);
 
-       public String style() {
-               return style;
-       }
+       public Collection<Style> styles();
 
-       public Track style(String style) {
-               this.style = style;
-               return this;
-       }
+       public Track styles(Collection<? extends Style> styles);
 
 }