projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid retaining multiple copies of elements.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
core
/
PostProvider.java
diff --git
a/src/main/java/net/pterodactylus/sone/core/PostProvider.java
b/src/main/java/net/pterodactylus/sone/core/PostProvider.java
index
e7167cd
..
19a0e5d
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/core/PostProvider.java
+++ b/
src/main/java/net/pterodactylus/sone/core/PostProvider.java
@@
-19,6
+19,8
@@
package net.pterodactylus.sone.core;
import net.pterodactylus.sone.data.Post;
import net.pterodactylus.sone.data.Post;
+import com.google.common.base.Optional;
+
/**
* Interface for objects that can provide {@link Post}s by their ID.
*
/**
* Interface for objects that can provide {@link Post}s by their ID.
*
@@
-33,6
+35,6
@@
public interface PostProvider {
* The ID of the post to return
* @return The post with the given ID, or {@code null}
*/
* The ID of the post to return
* @return The post with the given ID, or {@code null}
*/
- public
Post
getPost(String postId);
+ public
Optional<Post>
getPost(String postId);
}
}