public int compareTo(ThriftJobProfile other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; ThriftJobProfile typedOther = (ThriftJobProfile) other; lastComparison = Boolean.valueOf(isSetUser()).compareTo(isSetUser()); if (lastComparison != 0) { return lastComparison; } lastComparison = TBaseHelper.compareTo(user, typedOther.user); if (lastComparison != 0) { return lastComparison; } lastComparison = Boolean.valueOf(isSetJobID()).compareTo(isSetJobID()); if (lastComparison != 0) { return lastComparison; } lastComparison = TBaseHelper.compareTo(jobID, typedOther.jobID); if (lastComparison != 0) { return lastComparison; } lastComparison = Boolean.valueOf(isSetJobFile()).compareTo(isSetJobFile()); if (lastComparison != 0) { return lastComparison; } lastComparison = TBaseHelper.compareTo(jobFile, typedOther.jobFile); if (lastComparison != 0) { return lastComparison; } lastComparison = Boolean.valueOf(isSetName()).compareTo(isSetName()); if (lastComparison != 0) { return lastComparison; } lastComparison = TBaseHelper.compareTo(name, typedOther.name); if (lastComparison != 0) { return lastComparison; } lastComparison = Boolean.valueOf(isSetQueueName()).compareTo(isSetQueueName()); if (lastComparison != 0) { return lastComparison; } lastComparison = TBaseHelper.compareTo(queueName, typedOther.queueName); if (lastComparison != 0) { return lastComparison; } return 0; }
/** Performs a deep copy on <i>other</i>. */ public ThriftJobProfile(ThriftJobProfile other) { if (other.isSetUser()) { this.user = other.user; } if (other.isSetJobID()) { this.jobID = new ThriftJobID(other.jobID); } if (other.isSetJobFile()) { this.jobFile = other.jobFile; } if (other.isSetName()) { this.name = other.name; } if (other.isSetQueueName()) { this.queueName = other.queueName; } }
public boolean equals(ThriftJobProfile that) { if (that == null) return false; boolean this_present_user = true && this.isSetUser(); boolean that_present_user = true && that.isSetUser(); if (this_present_user || that_present_user) { if (!(this_present_user && that_present_user)) return false; if (!this.user.equals(that.user)) return false; } boolean this_present_jobID = true && this.isSetJobID(); boolean that_present_jobID = true && that.isSetJobID(); if (this_present_jobID || that_present_jobID) { if (!(this_present_jobID && that_present_jobID)) return false; if (!this.jobID.equals(that.jobID)) return false; } boolean this_present_jobFile = true && this.isSetJobFile(); boolean that_present_jobFile = true && that.isSetJobFile(); if (this_present_jobFile || that_present_jobFile) { if (!(this_present_jobFile && that_present_jobFile)) return false; if (!this.jobFile.equals(that.jobFile)) return false; } boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name)) return false; if (!this.name.equals(that.name)) 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; } return true; }