- /**
- * Creates a new post.
- *
- * @param sone
- * The Sone this post belongs to
- * @param text
- * The text of the post
- */
- public Post(Sone sone, String text) {
- this(sone, System.currentTimeMillis(), text);
- }
+ @Override
+ public boolean apply(Post post) {
+ return (post != null) && (post.getTime() <= System.currentTimeMillis());
+ }
+
+ };
+
+ //
+ // ACCESSORS
+ //