X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fdemoscenemusic%2Fdata%2FDefaultArtist.java;h=7f99a9c99cd53aec946f92307470000819a04eda;hb=cb96ebd4d6cb9b43fcf9a6bb3e2f335bff243708;hp=d876169574bd44ee2c7cbd0a3d3852ac6a9286be;hpb=10561cf7c1b437433d58eaa13e32c3ee6156fa76;p=demoscenemusic.git
diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/DefaultArtist.java b/src/main/java/net/pterodactylus/demoscenemusic/data/DefaultArtist.java
index d876169..7f99a9c 100644
--- a/src/main/java/net/pterodactylus/demoscenemusic/data/DefaultArtist.java
+++ b/src/main/java/net/pterodactylus/demoscenemusic/data/DefaultArtist.java
@@ -20,48 +20,76 @@ package net.pterodactylus.demoscenemusic.data;
import java.util.Collection;
/**
- * TODO
+ * Default implementation for an artist data container.
*
* @author David âBombeâ Roden
*/
public class DefaultArtist extends DefaultBase implements Artist {
+ /**
+ * Creates a new artist data container.
+ *
+ * @param id
+ * The ID of the artist
+ */
public DefaultArtist(String id) {
super(id);
}
- public String name() {
- return value("name", String.class).get();
+ //
+ // ARTIST METHODS
+ //
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String getName() {
+ return getValue("name", String.class).get();
}
- public Artist name(String name) {
- value("name", String.class).set(name);
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Artist setName(String name) {
+ getValue("name", String.class).set(name);
return this;
}
/**
* {@inheritDoc}
*/
+ @Override
@SuppressWarnings("unchecked")
- public Collection groups() {
- return value("groups", Collection.class).get();
+ public Collection getGroups() {
+ return getValue("groups", Collection.class).get();
}
/**
* {@inheritDoc}
*/
- public Artist groups(Collection groups) {
- value("groups", Collection.class).set(groups);
+ @Override
+ public Artist setGroups(Collection groups) {
+ getValue("groups", Collection.class).set(groups);
return this;
}
- public Collection