X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fdemoscenemusic%2Fdata%2FGroup.java;h=054b303f96e8cd0e2257c5733050825e26eff939;hb=b2ab3fd2aefa2815f8c55b5b0e8b8d2eb912a192;hp=292eb2190d8b31a1ef87cf700816e849c2b576d4;hpb=a70f78affb67857e8708d04266bdff60824f0eae;p=demoscenemusic.git
diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/Group.java b/src/main/java/net/pterodactylus/demoscenemusic/data/Group.java
index 292eb21..054b303 100644
--- a/src/main/java/net/pterodactylus/demoscenemusic/data/Group.java
+++ b/src/main/java/net/pterodactylus/demoscenemusic/data/Group.java
@@ -17,41 +17,61 @@
package net.pterodactylus.demoscenemusic.data;
+import java.util.Collection;
+
/**
- * TODO
+ * Data interface for groups.
*
* @author David âBombeâ Roden
*/
-public class Group {
-
- private final String id;
- private String name;
- private String url;
+public interface Group extends Base {
- public Group(String id) {
- this.id = id;
- }
+ /**
+ * Returns the name of this group.
+ *
+ * @return The name of this group
+ */
+ public String getName();
- public String id() {
- return id;
- }
+ /**
+ * Sets the name of this group.
+ *
+ * @param name
+ * The name of this group
+ * @return This group
+ */
+ public Group setName(String name);
- public String name() {
- return name;
- }
+ /**
+ * Returns the URL of this groupâs website.
+ *
+ * @return The URL of this groupâs website
+ */
+ public String getUrl();
- public Group name(String name) {
- this.name = name;
- return this;
- }
+ /**
+ * Sets the URL of this groupâs website.
+ *
+ * @param url
+ * The URL of this groupâs website
+ * @return This group
+ */
+ public Group setUrl(String url);
- public String url() {
- return url;
- }
+ /**
+ * Returns all artists belonging to this group.
+ *
+ * @return All artists belonging to this group
+ */
+ public Collection getArtists();
- public Group url(String url) {
- this.url = url;
- return this;
- }
+ /**
+ * Sets all artists belonging to this group.
+ *
+ * @param artists
+ * All artists belonging to this group
+ * @return This group
+ */
+ public Group setArtists(Collection artists);
}