From: David ‘Bombe’ Roden Date: Thu, 19 Apr 2012 14:11:33 +0000 (+0200) Subject: Use Collection instead of Set. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=10561cf7c1b437433d58eaa13e32c3ee6156fa76;p=demoscenemusic.git Use Collection instead of Set. --- diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/Artist.java b/src/main/java/net/pterodactylus/demoscenemusic/data/Artist.java index 36d2e2c..f0948da 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/Artist.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/Artist.java @@ -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 groups(); + public Collection groups(); - public Artist groups(Set groups); + public Artist groups(Collection groups); public Collection tracks(); diff --git a/src/main/java/net/pterodactylus/demoscenemusic/data/DefaultArtist.java b/src/main/java/net/pterodactylus/demoscenemusic/data/DefaultArtist.java index 4b7b5ef..d876169 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/data/DefaultArtist.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/data/DefaultArtist.java @@ -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 groups() { - return value("groups", Set.class).get(); + public Collection groups() { + return value("groups", Collection.class).get(); } /** * {@inheritDoc} */ - public Artist groups(Set groups) { - value("groups", Set.class).set(groups); + public Artist groups(Collection groups) { + value("groups", Collection.class).set(groups); return this; }