+ @Override
+ public Function<String, Optional<Post>> getPost() {
+ return memoryPostDatabase.getPost();
+ }
+
+ @Override
+ public Optional<Post> getPost(String postId) {
+ return memoryPostDatabase.getPost(postId);
+ }
+
+ @Override
+ public Collection<Post> getPosts(String soneId) {
+ return memoryPostDatabase.getPosts(soneId);
+ }
+
+ @Override
+ public Collection<Post> getDirectedPosts(String recipientId) {
+ return memoryPostDatabase.getDirectedPosts(recipientId);
+ }
+
+ /**
+ * Returns whether the given post is known.
+ *
+ * @param post
+ * The post
+ * @return {@code true} if the post is known, {@code false} otherwise
+ */
+ @Override
+ public boolean isPostKnown(Post post) {
+ return memoryPostDatabase.isPostKnown(post);
+ }
+