Move more methods to the Sone provider interface.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 29 Jan 2013 05:45:28 +0000 (06:45 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 29 Jan 2013 05:52:42 +0000 (06:52 +0100)
src/main/java/net/pterodactylus/sone/core/Core.java
src/main/java/net/pterodactylus/sone/database/SoneProvider.java

index de6ba55..9fe41ac 100644 (file)
@@ -373,10 +373,9 @@ public class Core extends AbstractService implements SoneProvider, PostProvider,
        }
 
        /**
-        * Returns all local Sones.
-        *
-        * @return All local Sones
+        * {@inheritDocs}
         */
+       @Override
        public Collection<Sone> getLocalSones() {
                synchronized (sones) {
                        return Collections2.filter(sones.values(), new Predicate<Sone>() {
@@ -415,10 +414,9 @@ public class Core extends AbstractService implements SoneProvider, PostProvider,
        }
 
        /**
-        * Returns all remote Sones.
-        *
-        * @return All remote Sones
+        * {@inheritDocs}
         */
+       @Override
        public Collection<Sone> getRemoteSones() {
                synchronized (sones) {
                        return Collections2.filter(sones.values(), new Predicate<Sone>() {
index f484aaf..993804f 100644 (file)
@@ -47,4 +47,18 @@ public interface SoneProvider {
         */
        public Collection<Sone> getSones();
 
+       /**
+        * Returns all local Sones.
+        *
+        * @return All local Sones
+        */
+       public Collection<Sone> getLocalSones();
+
+       /**
+        * Returns all remote Sones.
+        *
+        * @return All remote Sones
+        */
+       public Collection<Sone> getRemoteSones();
+
 }