From: David ‘Bombe’ Roden Date: Tue, 29 Jan 2013 05:45:28 +0000 (+0100) Subject: Move more methods to the Sone provider interface. X-Git-Tag: 0.8.5^2~3^2~28 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=bf01c9824a883d0446ce33e68e398abbdd7bf22d;p=Sone.git Move more methods to the Sone provider interface. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index de6ba55..9fe41ac 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -373,10 +373,9 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, } /** - * Returns all local Sones. - * - * @return All local Sones + * {@inheritDocs} */ + @Override public Collection getLocalSones() { synchronized (sones) { return Collections2.filter(sones.values(), new Predicate() { @@ -415,10 +414,9 @@ public class Core extends AbstractService implements SoneProvider, PostProvider, } /** - * Returns all remote Sones. - * - * @return All remote Sones + * {@inheritDocs} */ + @Override public Collection getRemoteSones() { synchronized (sones) { return Collections2.filter(sones.values(), new Predicate() { diff --git a/src/main/java/net/pterodactylus/sone/database/SoneProvider.java b/src/main/java/net/pterodactylus/sone/database/SoneProvider.java index f484aaf..993804f 100644 --- a/src/main/java/net/pterodactylus/sone/database/SoneProvider.java +++ b/src/main/java/net/pterodactylus/sone/database/SoneProvider.java @@ -47,4 +47,18 @@ public interface SoneProvider { */ public Collection getSones(); + /** + * Returns all local Sones. + * + * @return All local Sones + */ + public Collection getLocalSones(); + + /** + * Returns all remote Sones. + * + * @return All remote Sones + */ + public Collection getRemoteSones(); + }