Пример #1
0
  public boolean equals(T_QueryOrderResponse that) {
    if (that == null) return false;

    boolean this_present_responseCode = true;
    boolean that_present_responseCode = true;
    if (this_present_responseCode || that_present_responseCode) {
      if (!(this_present_responseCode && that_present_responseCode)) return false;
      if (this.responseCode != that.responseCode) return false;
    }

    boolean this_present_transactionID = true;
    boolean that_present_transactionID = true;
    if (this_present_transactionID || that_present_transactionID) {
      if (!(this_present_transactionID && that_present_transactionID)) return false;
      if (this.transactionID != that.transactionID) return false;
    }

    boolean this_present_description = true && this.isSetDescription();
    boolean that_present_description = true && that.isSetDescription();
    if (this_present_description || that_present_description) {
      if (!(this_present_description && that_present_description)) return false;
      if (!this.description.equals(that.description)) return false;
    }

    return true;
  }
Пример #2
0
 /** Performs a deep copy on <i>other</i>. */
 public T_QueryOrderResponse(T_QueryOrderResponse other) {
   __isset_bit_vector.clear();
   __isset_bit_vector.or(other.__isset_bit_vector);
   this.responseCode = other.responseCode;
   this.transactionID = other.transactionID;
   if (other.isSetDescription()) {
     this.description = other.description;
   }
 }
Пример #3
0
  public int compareTo(T_QueryOrderResponse other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

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

    lastComparison = Boolean.valueOf(isSetResponseCode()).compareTo(typedOther.isSetResponseCode());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetResponseCode()) {
      lastComparison = TBaseHelper.compareTo(this.responseCode, typedOther.responseCode);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison =
        Boolean.valueOf(isSetTransactionID()).compareTo(typedOther.isSetTransactionID());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetTransactionID()) {
      lastComparison = TBaseHelper.compareTo(this.transactionID, typedOther.transactionID);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetDescription()).compareTo(typedOther.isSetDescription());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetDescription()) {
      lastComparison = TBaseHelper.compareTo(this.description, typedOther.description);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    return 0;
  }