From 10542cef0e9cd456b7e3dbf34b0c1434c99d62b4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 18 Apr 2012 15:29:41 +0200 Subject: [PATCH] Add groups to artist. --- .../demoscenemusic/data/AbstractArtist.java | 18 ++++++++++++++++++ .../net/pterodactylus/demoscenemusic/data/Artist.java | 6 ++++++ 2 files changed, 24 insertions(+) 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); + } -- 2.7.4