X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FPost.java;h=e68846a3d071182edb53d877eddf759371301a6b;hb=26dbc1f7ba2c4243d8cc07986b0e943a2238ea08;hp=f1714755b9d50f1e88ce82223c4b8d79e8b70848;hpb=cd2ec98ba1ec7c66342dbb50ad2876572d953591;p=Sone.git 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 --- 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 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 @@ -40,10 +40,10 @@ public interface Post { }; /** Filter for posts with timestamps from the future. */ - public static final Filter FUTURE_POSTS_FILTER = new Filter() { + public static final Predicate FUTURE_POSTS_FILTER = new Predicate() { @Override - public boolean filterObject(Post post) { + public boolean apply(Post post) { return post.getTime() <= System.currentTimeMillis(); }