/**
* Creates a new reply.
*
+ * @param id
+ * The ID of the reply
+ */
+ public Reply(String id) {
+ this(id, null, null, 0, null);
+ }
+
+ /**
+ * Creates a new reply.
+ *
* @param sone
* The sone that posted the reply
* @param post
*/
@Override
public int hashCode() {
- return sone.hashCode() ^ id.hashCode() ^ post.hashCode() ^ (int) (time >> 32) ^ (int) (time & 0xffffffff) ^ text.hashCode();
+ return id.hashCode();
}
/**
return false;
}
Reply reply = (Reply) object;
- return reply.sone.equals(sone) && reply.id.equals(id) && reply.post.equals(post) && (reply.time == time) && reply.text.equals(text);
+ return reply.id.equals(id);
}
/**