*/
@Override
public int hashCode() {
- return post.hashCode() ^ id.hashCode();
+ return sone.hashCode() ^ id.hashCode() ^ post.hashCode() ^ (int) (time >> 32) ^ (int) (time & 0xffffffff);
}
/**
if (!(object instanceof Reply)) {
return false;
}
- return ((Reply) object).post.equals(post) && ((Reply) object).id.equals(id);
+ Reply reply = (Reply) object;
+ return reply.sone.equals(sone) && reply.id.equals(id) && reply.post.equals(post) && (reply.time == time) && reply.text.equals(text);
}
}