public boolean equals()

in library/src/main/java/com/theguardian/bridget/thrift/Discussion.java [1780:1805]


    public boolean equals(comment_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;
      }

      return true;
    }