示例#1
0
  public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof Comment)) return false;

    final Comment comment = (Comment) o;

    if (!(created.getTime() == comment.created.getTime())) return false;
    if (!rating.equals(comment.rating)) return false;
    if (text != null ? !text.equals(comment.text) : comment.text != null) return false;

    return true;
  }