Example #1
0
  public boolean equals(FailedStatus that) {
    if (that == null) return false;

    boolean this_present_error_message = true && this.is_set_error_message();
    boolean that_present_error_message = true && that.is_set_error_message();
    if (this_present_error_message || that_present_error_message) {
      if (!(this_present_error_message && that_present_error_message)) return false;
      if (!this.error_message.equals(that.error_message)) return false;
    }

    return true;
  }
Example #2
0
  public int compareTo(FailedStatus other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

    int lastComparison = 0;
    FailedStatus typedOther = (FailedStatus) other;

    lastComparison =
        Boolean.valueOf(is_set_error_message()).compareTo(typedOther.is_set_error_message());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (is_set_error_message()) {
      lastComparison = TBaseHelper.compareTo(this.error_message, typedOther.error_message);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }
Example #3
0
 /** Performs a deep copy on <i>other</i>. */
 public FailedStatus(FailedStatus other) {
   if (other.is_set_error_message()) {
     this.error_message = other.error_message;
   }
 }