From: David ‘Bombe’ Roden Date: Thu, 9 Jun 2011 08:36:07 +0000 (+0200) Subject: Implement the Sone and post provider interfaces. X-Git-Tag: 0.6.5^2~8^2~10 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=5e2a7a28c94a12c8a9a80340c14f4f1e63bbec24;p=Sone.git Implement the Sone and post provider interfaces. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 1e68c63..1c67231 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -65,7 +65,7 @@ import freenet.keys.FreenetURI; * * @author David ‘Bombe’ Roden */ -public class Core implements IdentityListener, UpdateListener { +public class Core implements IdentityListener, UpdateListener, SoneProvider, PostProvider { /** * Enumeration for the possible states of a {@link Sone}. @@ -352,6 +352,7 @@ public class Core implements IdentityListener, UpdateListener { * @return The Sone with the given ID, or {@code null} if there is no such * Sone */ + @Override public Sone getSone(String id, boolean create) { if (isLocalSone(id)) { return getLocalSone(id); @@ -574,6 +575,7 @@ public class Core implements IdentityListener, UpdateListener { * exists, {@code false} to return {@code null} * @return The post, or {@code null} if there is no such post */ + @Override public Post getPost(String postId, boolean create) { synchronized (posts) { Post post = posts.get(postId);