示例#1
0
  public int compareTo(BlurException other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

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

    lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetMessage()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison =
        Boolean.valueOf(isSetStackTraceStr()).compareTo(typedOther.isSetStackTraceStr());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetStackTraceStr()) {
      lastComparison =
          org.apache.thrift.TBaseHelper.compareTo(this.stackTraceStr, typedOther.stackTraceStr);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }
示例#2
0
 /** Performs a deep copy on <i>other</i>. */
 public BlurException(BlurException other) {
   if (other.isSetMessage()) {
     this.message = other.message;
   }
   if (other.isSetStackTraceStr()) {
     this.stackTraceStr = other.stackTraceStr;
   }
 }
示例#3
0
  public boolean equals(BlurException 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_stackTraceStr = true && this.isSetStackTraceStr();
    boolean that_present_stackTraceStr = true && that.isSetStackTraceStr();
    if (this_present_stackTraceStr || that_present_stackTraceStr) {
      if (!(this_present_stackTraceStr && that_present_stackTraceStr)) return false;
      if (!this.stackTraceStr.equals(that.stackTraceStr)) return false;
    }

    return true;
  }