-public class Reply {
-
- /** The ID of the reply. */
- private final UUID id;
-
- /** The Post this reply refers to. */
- private final Post post;
-
- /** The time of the reply. */
- private final long time;
-
- /** The text of the reply. */
- private final String text;
-
- /**
- * Creates a new reply.
- *
- * @param post
- * The post to reply to
- * @param text
- * The text of the reply
- */
- public Reply(Post post, String text) {
- this(post, System.currentTimeMillis(), text);
- }
-
- /**
- * Creates a new reply-
- *
- * @param post
- * The post to reply to
- * @param time
- * The time of the reply
- * @param text
- * The text of the reply
- */
- public Reply(Post post, long time, String text) {
- this(UUID.randomUUID(), post, time, text);
- }
-
- /**
- * Creates a new 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(UUID id, Post post, long time, String text) {
- this.id = id;
- this.post = post;
- this.time = time;
- this.text = text;
- }
-
- //
- // ACCESSORS
- //