projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert “Sone unlocked” into EventBus-based event.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
data
/
Reply.java
diff --git
a/src/main/java/net/pterodactylus/sone/data/Reply.java
b/src/main/java/net/pterodactylus/sone/data/Reply.java
index
6d0cbdb
..
f6e4a2c
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/data/Reply.java
+++ b/
src/main/java/net/pterodactylus/sone/data/Reply.java
@@
-20,7
+20,7
@@
package net.pterodactylus.sone.data;
import java.util.Comparator;
import java.util.UUID;
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.
/**
* Abstract base class for all replies.
@@
-45,13
+45,13
@@
public abstract class Reply<T extends Reply<T>> {
};
/** Filter for replies with timestamps from the future. */
};
/** 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
/**
* {@inheritDoc}
*/
@Override
- public boolean
filterObject
(Reply<?> reply) {
+ public boolean
apply
(Reply<?> reply) {
return reply.getTime() <= System.currentTimeMillis();
}
return reply.getTime() <= System.currentTimeMillis();
}