Ejemplo n.º 1
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;
   }
 }
Ejemplo n.º 2
0
  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;
  }