@Override public int compareTo(DeleteMessageRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetQueueName()).compareTo(other.isSetQueueName()); if (lastComparison != 0) { return lastComparison; } if (isSetQueueName()) { lastComparison = libthrift091.TBaseHelper.compareTo(this.queueName, other.queueName); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetReceiptHandle()).compareTo(other.isSetReceiptHandle()); if (lastComparison != 0) { return lastComparison; } if (isSetReceiptHandle()) { lastComparison = libthrift091.TBaseHelper.compareTo(this.receiptHandle, other.receiptHandle); if (lastComparison != 0) { return lastComparison; } } return 0; }
/** Performs a deep copy on <i>other</i>. */ public DeleteMessageRequest(DeleteMessageRequest other) { if (other.isSetQueueName()) { this.queueName = other.queueName; } if (other.isSetReceiptHandle()) { this.receiptHandle = other.receiptHandle; } }
public boolean equals(DeleteMessageRequest that) { if (that == null) return false; boolean this_present_queueName = true && this.isSetQueueName(); boolean that_present_queueName = true && that.isSetQueueName(); if (this_present_queueName || that_present_queueName) { if (!(this_present_queueName && that_present_queueName)) return false; if (!this.queueName.equals(that.queueName)) return false; } boolean this_present_receiptHandle = true && this.isSetReceiptHandle(); boolean that_present_receiptHandle = true && that.isSetReceiptHandle(); if (this_present_receiptHandle || that_present_receiptHandle) { if (!(this_present_receiptHandle && that_present_receiptHandle)) return false; if (!this.receiptHandle.equals(that.receiptHandle)) return false; } return true; }