/*
- * Sone - Reply.java - Copyright © 2011 David Roden
+ * Sone - Reply.java - Copyright © 2011–2012 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 java.util.UUID;
-import net.pterodactylus.util.filter.Filter;
+import com.google.common.base.Predicate;
/**
* Abstract base class for all replies.
};
/** Filter for replies with timestamps from the future. */
- public static final Filter<Reply<?>> FUTURE_REPLY_FILTER = new Filter<Reply<?>>() {
+ public static final Predicate<Reply<?>> FUTURE_REPLY_FILTER = new Predicate<Reply<?>>() {
/**
* {@inheritDoc}
*/
@Override
- public boolean filterObject(Reply<?> reply) {
+ public boolean apply(Reply<?> reply) {
return reply.getTime() <= System.currentTimeMillis();
}