}
/**
- * Returns all Sones, remote and local.
- *
- * @return All Sones
+ * {@inheritDocs}
*/
- public Set<Sone> getSones() {
+ @Override
+ public Collection<Sone> getSones() {
synchronized (sones) {
return Collections.unmodifiableCollection(sones.values());
}
package net.pterodactylus.sone.database;
+import java.util.Collection;
+
import net.pterodactylus.sone.data.Sone;
import com.google.common.base.Optional;
*/
public Optional<Sone> getSone(String soneId);
+ /**
+ * Returns all Sones.
+ *
+ * @return All Sones
+ */
+ public Collection<Sone> getSones();
+
}
redirectIfNotNull(getImageId(phrase), "imageBrowser.html?image=");
}
- Set<Sone> sones = webInterface.getCore().getSones();
+ Collection<Sone> sones = webInterface.getCore().getSones();
Collection<Hit<Sone>> soneHits = getHits(sones, phrases, SoneStringGenerator.COMPLETE_GENERATOR);
Collection<Hit<Post>> postHits = hitCache.getUnchecked(phrases);