X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fdemoscenemusic%2Fdata%2FGroup.java;h=9c86181c882c116d2259f27aecb2d09479ae30b8;hb=c9abfe7d653c88931b01137a65188873ee586a37;hp=2c2162d8bad9ecf6ddf9d13136977f1731efbbeb;hpb=1d32d30523b664dfe59b758a08a722bfde828f0f;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 2c2162d..9c86181 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/Group.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/Group.java @@ -17,37 +17,45 @@ 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 Group(String id) { - this.id = id; - } - - public String name() { - return name; - } - - public Group name(String name) { - this.name = name; - return this; - } - - public String url() { - return url; - } - - public Group url(String url) { - this.url = url; - return this; - } +public interface Group extends Base { + + /** + * Returns the name of this group. + * + * @return The name of this group + */ + public String getName(); + + /** + * Sets the name of this group. + * + * @param name + * The name of this group + * @return This group + */ + public Group setName(String name); + + /** + * Returns all artists belonging to this group. + * + * @return All artists belonging to this group + */ + public Collection getArtists(); + + /** + * Sets all artists belonging to this group. + * + * @param artists + * All artists belonging to this group + * @return This group + */ + public Group setArtists(Collection artists); }