@Override
public Collection<Post> getDirectedPosts(String recipientId) {
lock.readLock().lock();
try {
Collection<Post> posts = recipientPosts.get(recipientId);
@Override
public Collection<Post> getDirectedPosts(String recipientId) {
lock.readLock().lock();
try {
Collection<Post> posts = recipientPosts.get(recipientId);
@Override
public PostBuilder newPostBuilder() {
return new MemoryPostBuilder(this, soneProvider);
@Override
public PostBuilder newPostBuilder() {
return new MemoryPostBuilder(this, soneProvider);
@Override
public void storePost(Post post) {
checkNotNull(post, "post must not be null");
@Override
public void storePost(Post post) {
checkNotNull(post, "post must not be null");
@Override
public void removePost(Post post) {
checkNotNull(post, "post must not be null");
@Override
public void removePost(Post post) {
checkNotNull(post, "post must not be null");
@Override
public void storePosts(Sone sone, Collection<Post> posts) throws IllegalArgumentException {
checkNotNull(sone, "sone must not be null");
@Override
public void storePosts(Sone sone, Collection<Post> posts) throws IllegalArgumentException {
checkNotNull(sone, "sone must not be null");
@Override
public void removePosts(Sone sone) {
checkNotNull(sone, "sone must not be null");
@Override
public void removePosts(Sone sone) {
checkNotNull(sone, "sone must not be null");
@Override
public PostReplyBuilder newPostReplyBuilder() {
return new MemoryPostReplyBuilder(this, soneProvider);
@Override
public PostReplyBuilder newPostReplyBuilder() {
return new MemoryPostReplyBuilder(this, soneProvider);
@Override
public void storePostReplies(Sone sone, Collection<PostReply> postReplies) {
checkNotNull(sone, "sone must not be null");
@Override
public void storePostReplies(Sone sone, Collection<PostReply> postReplies) {
checkNotNull(sone, "sone must not be null");
@Override
public void removePostReplies(Sone sone) {
checkNotNull(sone, "sone must not be null");
@Override
public void removePostReplies(Sone sone) {
checkNotNull(sone, "sone must not be null");
* @return {@code true} if the post is known, {@code false} otherwise
*/
boolean isPostKnown(Post post) {
* @return {@code true} if the post is known, {@code false} otherwise
*/
boolean isPostKnown(Post post) {
- * Gets all posts that are directed the given Sone, creating a new
- * collection if there is none yet.
+ * Gets all posts that are directed the given Sone, creating a new collection
+ * if there is none yet.