X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fdemoscenemusic%2Fdata%2FArtist.java;h=563a3bc8bf9e87a254bd3aaf7d5644c489f5b103;hb=18e7d99933bc49b3092b156dbb16eef3f1957ec6;hp=f1874b20adab8b50a332773b04c0ec89bb8da400;hpb=10542cef0e9cd456b7e3dbf34b0c1434c99d62b4;p=demoscenemusic.git diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/Artist.java b/src/main/java/net/pterodactylus/demoscenemusic/data/Artist.java index f1874b2..563a3bc 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/Artist.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/Artist.java @@ -17,21 +17,61 @@ package net.pterodactylus.demoscenemusic.data; -import java.util.Set; +import java.util.Collection; /** - * TODO + * Data interface for artists. * * @author David ‘Bombe’ Roden */ public interface Artist extends Base { - public String name(); + /** + * Returns the name of this artist. + * + * @return The name of this artist + */ + public String getName(); - public Artist name(String name); + /** + * Sets the name of this artist. + * + * @param name + * The new name of this artist + * @return This artist + */ + public Artist setName(String name); - public Set groups(); + /** + * Returns the groups this artist belongs to. + * + * @return The groups this artist belongs to + */ + public Collection getGroups(); - public Artist groups(Set groups); + /** + * Sets the groups this artist belongs to. + * + * @param groups + * The groups this artist belongs to + * @return This artist + */ + public Artist setGroups(Collection groups); + + /** + * Returns the tracks created by this artist. + * + * @return The tracks created by this artist + */ + public Collection getTracks(); + + /** + * Sets the tracks created by this artist. + * + * @param tracks + * The tracks created by this artist + * @return This artist + */ + public Artist setTracks(Collection tracks); }