+ /** The ID of the reply. */
+ private final String id;
+
+ /** The Sone that created this reply. */
+ private volatile Sone sone;
+
+ /** The time of the reply. */
+ private volatile long time;
+
+ /** The text of the reply. */
+ private volatile String text;
+
+ /**
+ * Creates a new reply with the given ID.
+ *
+ * @param id
+ * The ID of the reply
+ */
+ protected Reply(String id) {
+ this(id, null, 0, null);
+ }
+
+ /**
+ * Creates a new reply with a new random ID.
+ *
+ * @param sone
+ * The Sone of the reply
+ * @param time
+ * The time of the reply
+ * @param text
+ * The text of the reply
+ */
+ protected Reply(Sone sone, long time, String text) {
+ this(UUID.randomUUID().toString(), sone, time, text);
+ }
+
+ /**
+ * Creates a new reply.
+ *
+ * @param id
+ * The ID of the reply
+ * @param sone
+ * The Sone of the reply
+ * @param time
+ * The time of the reply
+ * @param text
+ * The text of the reply
+ */
+ protected Reply(String id, Sone sone, long time, String text) {
+ this.id = id;
+ this.sone = sone;
+ this.time = time;
+ this.text = text;
+ }
+