projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert “image insert failed” into EventBus-based event.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
data
/
Post.java
diff --git
a/src/main/java/net/pterodactylus/sone/data/Post.java
b/src/main/java/net/pterodactylus/sone/data/Post.java
index
f171475
..
e68846a
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/data/Post.java
+++ b/
src/main/java/net/pterodactylus/sone/data/Post.java
@@
-19,7
+19,7
@@
package net.pterodactylus.sone.data;
import java.util.Comparator;
import java.util.Comparator;
-import
net.pterodactylus.util.collection.filter.Filter
;
+import
com.google.common.base.Predicate
;
/**
* A post is a short message that a user writes in his Sone to let other users
/**
* A post is a short message that a user writes in his Sone to let other users
@@
-40,10
+40,10
@@
public interface Post {
};
/** Filter for posts with timestamps from the future. */
};
/** Filter for posts with timestamps from the future. */
- public static final
Filter<Post> FUTURE_POSTS_FILTER = new Filter
<Post>() {
+ public static final
Predicate<Post> FUTURE_POSTS_FILTER = new Predicate
<Post>() {
@Override
@Override
- public boolean
filterObject
(Post post) {
+ public boolean
apply
(Post post) {
return post.getTime() <= System.currentTimeMillis();
}
return post.getTime() <= System.currentTimeMillis();
}