Replace bookmark database interface with Kotlin version
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 16 Oct 2017 05:08:50 +0000 (07:08 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 16 Oct 2017 05:08:50 +0000 (07:08 +0200)
src/main/java/net/pterodactylus/sone/database/BookmarkDatabase.java [deleted file]
src/main/kotlin/net/pterodactylus/sone/database/BookmarkDatabase.kt [new file with mode: 0644]

diff --git a/src/main/java/net/pterodactylus/sone/database/BookmarkDatabase.java b/src/main/java/net/pterodactylus/sone/database/BookmarkDatabase.java
deleted file mode 100644 (file)
index 6eb9c38..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-package net.pterodactylus.sone.database;
-
-import java.util.Set;
-
-import net.pterodactylus.sone.data.Post;
-
-/**
- * Database interface for bookmark-related functionality.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
- */
-public interface BookmarkDatabase {
-
-       void bookmarkPost(Post post);
-       void unbookmarkPost(Post post);
-       boolean isPostBookmarked(Post post);
-       Set<Post> getBookmarkedPosts();
-
-}
diff --git a/src/main/kotlin/net/pterodactylus/sone/database/BookmarkDatabase.kt b/src/main/kotlin/net/pterodactylus/sone/database/BookmarkDatabase.kt
new file mode 100644 (file)
index 0000000..f44c1b8
--- /dev/null
@@ -0,0 +1,16 @@
+package net.pterodactylus.sone.database
+
+import net.pterodactylus.sone.data.Post
+
+/**
+ * Database interface for bookmark-related functionality.
+ */
+interface BookmarkDatabase {
+
+       val bookmarkedPosts: Set<Post>
+
+       fun bookmarkPost(post: Post)
+       fun unbookmarkPost(post: Post)
+       fun isPostBookmarked(post: Post): Boolean
+
+}