public boolean equals()

in tephra-core/src/main/java/org/apache/tephra/distributed/thrift/TGenericException.java [278:301]


  public boolean equals(TGenericException that) {
    if (that == null)
      return false;

    boolean this_present_message = true && this.isSetMessage();
    boolean that_present_message = true && that.isSetMessage();
    if (this_present_message || that_present_message) {
      if (!(this_present_message && that_present_message))
        return false;
      if (!this.message.equals(that.message))
        return false;
    }

    boolean this_present_originalExceptionClass = true && this.isSetOriginalExceptionClass();
    boolean that_present_originalExceptionClass = true && that.isSetOriginalExceptionClass();
    if (this_present_originalExceptionClass || that_present_originalExceptionClass) {
      if (!(this_present_originalExceptionClass && that_present_originalExceptionClass))
        return false;
      if (!this.originalExceptionClass.equals(that.originalExceptionClass))
        return false;
    }

    return true;
  }