Move getSones() method to Sone provider interface.
[Sone.git] / src / main / java / net / pterodactylus / sone / database / SoneProvider.java
index bbe0abf..f484aaf 100644 (file)
@@ -17,6 +17,8 @@
 
 package net.pterodactylus.sone.database;
 
+import java.util.Collection;
+
 import net.pterodactylus.sone.data.Sone;
 
 import com.google.common.base.Optional;
@@ -38,4 +40,11 @@ public interface SoneProvider {
         */
        public Optional<Sone> getSone(String soneId);
 
+       /**
+        * Returns all Sones.
+        *
+        * @return All Sones
+        */
+       public Collection<Sone> getSones();
+
 }