- /**
- * Creates a new reply-
- *
- * @param sone
- * The sone that posted the reply
- * @param post
- * The post to reply to
- * @param time
- * The time of the reply
- * @param text
- * The text of the reply
- */
- public Reply(Sone sone, Post post, long time, String text) {
- this(sone, UUID.randomUUID(), post, time, text);
- }
-
- /**
- * Creates a new reply-
- *
- * @param sone
- * The sone that posted the reply
- * @param id
- * The ID of the reply
- * @param post
- * The post to reply to
- * @param time
- * The time of the reply
- * @param text
- * The text of the reply
- */
- public Reply(Sone sone, UUID id, Post post, long time, String text) {
- this.sone = sone;
- this.id = id;
- this.post = post;
- this.time = time;
- this.text = text;
- }
-
- //
- // ACCESSORS
- //
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public boolean apply(Reply<?> reply) {
+ return (reply != null) && (reply.getTime() <= System.currentTimeMillis());
+ }