/*
- * 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
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
};
/** 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
- public boolean filterObject(Post post) {
+ public boolean apply(Post post) {
return post.getTime() <= System.currentTimeMillis();
}