From 10561cf7c1b437433d58eaa13e32c3ee6156fa76 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 19 Apr 2012 16:11:33 +0200 Subject: [PATCH] Use Collection instead of Set. --- src/main/java/net/pterodactylus/demoscenemusic/data/Artist.java | 5 ++--- .../net/pterodactylus/demoscenemusic/data/DefaultArtist.java | 9 ++++----- 2 files changed, 6 insertions(+), 8 deletions(-) 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; } -- 2.7.4