X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdata%2FPost.java;h=3486bedc3ca9d5a8e539ee9c394f35900adb7802;hb=99888ce13cc17d49f5e217ab6f2c9ad5ef168792;hp=f1714755b9d50f1e88ce82223c4b8d79e8b70848;hpb=50ce65f69e49ed10abeedaeb6615ffb37a0c0772;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..3486bed 100644 --- a/src/main/java/net/pterodactylus/sone/data/Post.java +++ b/src/main/java/net/pterodactylus/sone/data/Post.java @@ -1,5 +1,5 @@ /* - * Sone - Post.java - Copyright © 2010–2012 David Roden + * Sone - Post.java - Copyright © 2010–2013 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 @@ -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(); }