X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fdemoscenemusic%2Fdata%2FGroup.java;h=08ce87931e3dcdb749b2559a3ef7540b87fd997a;hb=ca45a291a94957a166d842ff483acf8e80876a60;hp=d5b697221411f5ca2b4f309fdf83fce19abb71e7;hpb=f9c49997cfd08b503cd256db145a670090165933;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 d5b6972..08ce879 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/Group.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/Group.java @@ -17,36 +17,62 @@ package net.pterodactylus.demoscenemusic.data; +import java.util.Collection; + /** - * TODO + * Data interface for groups. * * @author David ‘Bombe’ Roden */ -public class Group extends Base { +public interface Group extends Base { - private String name; - private String url; + /** + * Returns the name of this group. + * + * @return The name of this group + */ + public String getName(); - public Group(String id) { - super(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 short name of this group. + * + * @return The short name of this group, or {@code null} if this group does + * not have a short name + */ + public String getShortName(); - public Group name(String name) { - this.name = name; - return this; - } + /** + * Sets the short name of this group. + * + * @param shortName + * The new short name of this group + * @return This group + */ + public Group setShortName(String shortName); - 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); }