Add groups to artist.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 18 Apr 2012 13:29:41 +0000 (15:29 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 18 Apr 2012 13:29:41 +0000 (15:29 +0200)
src/main/java/net/pterodactylus/demoscenemusic/data/AbstractArtist.java
src/main/java/net/pterodactylus/demoscenemusic/data/Artist.java

index 66a31d0..8ba69cb 100644 (file)
@@ -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<Group> groups() {
+               return value("groups", Set.class).get();
+       }
+
+       /**
+        * {@inheritDoc}
+        */
+       public Artist groups(Set<Group> groups) {
+               value("groups", Set.class).set(groups);
+               return this;
+       }
+
 }
index 26499fb..f1874b2 100644 (file)
@@ -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<Group> groups();
+
+       public Artist groups(Set<Group> groups);
+
 }