From: David ‘Bombe’ Roden Date: Wed, 18 Apr 2012 13:29:41 +0000 (+0200) Subject: Add groups to artist. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=10542cef0e9cd456b7e3dbf34b0c1434c99d62b4;p=demoscenemusic.git Add groups to artist. --- diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractArtist.java b/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractArtist.java index 66a31d0..8ba69cb 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractArtist.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/AbstractArtist.java @@ -17,6 +17,8 @@ package net.pterodactylus.demoscenemusic.data; +import java.util.Set; + /** * TODO * @@ -37,4 +39,20 @@ public abstract class AbstractArtist extends AbstractBase implements Artist { return this; } + /** + * {@inheritDoc} + */ + @SuppressWarnings("unchecked") + public Set groups() { + return value("groups", Set.class).get(); + } + + /** + * {@inheritDoc} + */ + public Artist groups(Set groups) { + value("groups", Set.class).set(groups); + return this; + } + } diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/Artist.java b/src/main/java/net/pterodactylus/demoscenemusic/data/Artist.java index 26499fb..f1874b2 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/Artist.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/Artist.java @@ -17,6 +17,8 @@ package net.pterodactylus.demoscenemusic.data; +import java.util.Set; + /** * TODO * @@ -28,4 +30,8 @@ public interface Artist extends Base { public Artist name(String name); + public Set groups(); + + public Artist groups(Set groups); + }