Use Collection instead of Set.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 19 Apr 2012 14:11:33 +0000 (16:11 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 19 Apr 2012 14:11:33 +0000 (16:11 +0200)
src/main/java/net/pterodactylus/demoscenemusic/data/Artist.java
src/main/java/net/pterodactylus/demoscenemusic/data/DefaultArtist.java

index 36d2e2c..f0948da 100644 (file)
@@ -18,7 +18,6 @@
 package net.pterodactylus.demoscenemusic.data;
 
 import java.util.Collection;
-import java.util.Set;
 
 /**
  * TODO
@@ -31,9 +30,9 @@ public interface Artist extends Base {
 
        public Artist name(String name);
 
-       public Set<Group> groups();
+       public Collection<Group> groups();
 
-       public Artist groups(Set<Group> groups);
+       public Artist groups(Collection<Group> groups);
 
        public Collection<Track> tracks();
 
index 4b7b5ef..d876169 100644 (file)
@@ -18,7 +18,6 @@
 package net.pterodactylus.demoscenemusic.data;
 
 import java.util.Collection;
-import java.util.Set;
 
 /**
  * TODO
@@ -44,15 +43,15 @@ public class DefaultArtist extends DefaultBase implements Artist {
         * {@inheritDoc}
         */
        @SuppressWarnings("unchecked")
-       public Set<Group> groups() {
-               return value("groups", Set.class).get();
+       public Collection<Group> groups() {
+               return value("groups", Collection.class).get();
        }
 
        /**
         * {@inheritDoc}
         */
-       public Artist groups(Set<Group> groups) {
-               value("groups", Set.class).set(groups);
+       public Artist groups(Collection<Group> groups) {
+               value("groups", Collection.class).set(groups);
                return this;
        }