package net.pterodactylus.sone.notify;
-import java.util.function.Predicate;
-
import static com.google.common.base.Preconditions.checkNotNull;
import javax.annotation.Nonnull;
package net.pterodactylus.sone.notify
-import net.pterodactylus.util.notify.*
+import net.pterodactylus.util.notify.Notification
+import net.pterodactylus.util.notify.NotificationManager
/**
* Returns whether the notification manager contains a notification with the given ID.
import com.google.inject.ImplementedBy
import net.pterodactylus.sone.data.Post
import net.pterodactylus.sone.data.Sone
-import java.util.function.Predicate
@ImplementedBy(DefaultPostVisibilityFilter::class)
interface PostVisibilityFilter {
import com.google.inject.ImplementedBy
import net.pterodactylus.sone.data.PostReply
import net.pterodactylus.sone.data.Sone
-import java.util.function.Predicate
@ImplementedBy(DefaultReplyVisibilityFilter::class)
interface ReplyVisibilityFilter {
import net.pterodactylus.sone.data.Post
import net.pterodactylus.sone.data.PostReply
import net.pterodactylus.sone.data.Sone
-import java.util.function.Predicate
fun matchThisPost(post: Post) = createPostVisibilityFilter { _, p -> p == post }
val showAllPosts = createPostVisibilityFilter { _, _ -> true }