projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
🎨 Replace last activity comparator with Kotlin version
[Sone.git]
/
src
/
main
/
kotlin
/
net
/
pterodactylus
/
sone
/
database
/
PostReplyProvider.kt
diff --git
a/src/main/kotlin/net/pterodactylus/sone/database/PostReplyProvider.kt
b/src/main/kotlin/net/pterodactylus/sone/database/PostReplyProvider.kt
index
7e09017
..
c29e443
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/database/PostReplyProvider.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/database/PostReplyProvider.kt
@@
-1,5
+1,5
@@
/*
/*
- * Sone - PostReplyProvider.
java - Copyright © 2013–2016
David Roden
+ * Sone - PostReplyProvider.
kt - Copyright © 2013–2020
David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-17,12
+17,14
@@
package net.pterodactylus.sone.database
package net.pterodactylus.sone.database
-import com.google.common.base.Optional
-import net.pterodactylus.sone.data.PostReply
+import com.google.inject.*
+import net.pterodactylus.sone.data.*
+import net.pterodactylus.sone.database.memory.*
/**
* Interface for objects that can provide [PostReply]s.
*/
/**
* Interface for objects that can provide [PostReply]s.
*/
+@ImplementedBy(MemoryDatabase::class)
interface PostReplyProvider {
fun getPostReply(id: String): PostReply?
interface PostReplyProvider {
fun getPostReply(id: String): PostReply?