public boolean equals()

in library/src/main/java/com/theguardian/bridget/thrift/Discussion.java [2695:2729]


    public boolean equals(reply_args that) {
      if (that == null)
        return false;
      if (this == that)
        return true;

      boolean this_present_shortUrl = true && this.isSetShortUrl();
      boolean that_present_shortUrl = true && that.isSetShortUrl();
      if (this_present_shortUrl || that_present_shortUrl) {
        if (!(this_present_shortUrl && that_present_shortUrl))
          return false;
        if (!this.shortUrl.equals(that.shortUrl))
          return false;
      }

      boolean this_present_body = true && this.isSetBody();
      boolean that_present_body = true && that.isSetBody();
      if (this_present_body || that_present_body) {
        if (!(this_present_body && that_present_body))
          return false;
        if (!this.body.equals(that.body))
          return false;
      }

      boolean this_present_parentCommentId = true && this.isSetParentCommentId();
      boolean that_present_parentCommentId = true && that.isSetParentCommentId();
      if (this_present_parentCommentId || that_present_parentCommentId) {
        if (!(this_present_parentCommentId && that_present_parentCommentId))
          return false;
        if (!this.parentCommentId.equals(that.parentCommentId))
          return false;
      }

      return true;
    }