/** * Performs a deep copy on <i>other</i>. */ public JobSubmissionInterface(JobSubmissionInterface other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetJobSubmissionInterfaceId()) { this.jobSubmissionInterfaceId = other.jobSubmissionInterfaceId; } if (other.isSetJobSubmissionProtocol()) { this.jobSubmissionProtocol = other.jobSubmissionProtocol; } this.priorityOrder = other.priorityOrder; }
/** * Performs a deep copy on <i>other</i>. */ public JobSubmissionInterface(JobSubmissionInterface other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetJobSubmissionInterfaceId()) { this.jobSubmissionInterfaceId = other.jobSubmissionInterfaceId; } if (other.isSetJobSubmissionProtocol()) { this.jobSubmissionProtocol = other.jobSubmissionProtocol; } this.priorityOrder = other.priorityOrder; }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_jobSubmissionInterfaceId = true && (isSetJobSubmissionInterfaceId()); list.add(present_jobSubmissionInterfaceId); if (present_jobSubmissionInterfaceId) list.add(jobSubmissionInterfaceId); boolean present_jobSubmissionProtocol = true && (isSetJobSubmissionProtocol()); list.add(present_jobSubmissionProtocol); if (present_jobSubmissionProtocol) list.add(jobSubmissionProtocol.getValue()); boolean present_priorityOrder = true; list.add(present_priorityOrder); if (present_priorityOrder) list.add(priorityOrder); return list.hashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_jobSubmissionInterfaceId = true && (isSetJobSubmissionInterfaceId()); list.add(present_jobSubmissionInterfaceId); if (present_jobSubmissionInterfaceId) list.add(jobSubmissionInterfaceId); boolean present_jobSubmissionProtocol = true && (isSetJobSubmissionProtocol()); list.add(present_jobSubmissionProtocol); if (present_jobSubmissionProtocol) list.add(jobSubmissionProtocol.getValue()); boolean present_priorityOrder = true; list.add(present_priorityOrder); if (present_priorityOrder) list.add(priorityOrder); return list.hashCode(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case JOB_SUBMISSION_INTERFACE_ID: return isSetJobSubmissionInterfaceId(); case JOB_SUBMISSION_PROTOCOL: return isSetJobSubmissionProtocol(); case PRIORITY_ORDER: return isSetPriorityOrder(); } throw new IllegalStateException(); }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case JOB_SUBMISSION_INTERFACE_ID: return isSetJobSubmissionInterfaceId(); case JOB_SUBMISSION_PROTOCOL: return isSetJobSubmissionProtocol(); case PRIORITY_ORDER: return isSetPriorityOrder(); } throw new IllegalStateException(); }
public boolean equals(JobSubmissionInterface that) { if (that == null) return false; boolean this_present_jobSubmissionInterfaceId = true && this.isSetJobSubmissionInterfaceId(); boolean that_present_jobSubmissionInterfaceId = true && that.isSetJobSubmissionInterfaceId(); if (this_present_jobSubmissionInterfaceId || that_present_jobSubmissionInterfaceId) { if (!(this_present_jobSubmissionInterfaceId && that_present_jobSubmissionInterfaceId)) return false; if (!this.jobSubmissionInterfaceId.equals(that.jobSubmissionInterfaceId)) return false; } boolean this_present_jobSubmissionProtocol = true && this.isSetJobSubmissionProtocol(); boolean that_present_jobSubmissionProtocol = true && that.isSetJobSubmissionProtocol(); if (this_present_jobSubmissionProtocol || that_present_jobSubmissionProtocol) { if (!(this_present_jobSubmissionProtocol && that_present_jobSubmissionProtocol)) return false; if (!this.jobSubmissionProtocol.equals(that.jobSubmissionProtocol)) return false; } boolean this_present_priorityOrder = true; boolean that_present_priorityOrder = true; if (this_present_priorityOrder || that_present_priorityOrder) { if (!(this_present_priorityOrder && that_present_priorityOrder)) return false; if (this.priorityOrder != that.priorityOrder) return false; } return true; }
public boolean equals(JobSubmissionInterface that) { if (that == null) return false; boolean this_present_jobSubmissionInterfaceId = true && this.isSetJobSubmissionInterfaceId(); boolean that_present_jobSubmissionInterfaceId = true && that.isSetJobSubmissionInterfaceId(); if (this_present_jobSubmissionInterfaceId || that_present_jobSubmissionInterfaceId) { if (!(this_present_jobSubmissionInterfaceId && that_present_jobSubmissionInterfaceId)) return false; if (!this.jobSubmissionInterfaceId.equals(that.jobSubmissionInterfaceId)) return false; } boolean this_present_jobSubmissionProtocol = true && this.isSetJobSubmissionProtocol(); boolean that_present_jobSubmissionProtocol = true && that.isSetJobSubmissionProtocol(); if (this_present_jobSubmissionProtocol || that_present_jobSubmissionProtocol) { if (!(this_present_jobSubmissionProtocol && that_present_jobSubmissionProtocol)) return false; if (!this.jobSubmissionProtocol.equals(that.jobSubmissionProtocol)) return false; } boolean this_present_priorityOrder = true; boolean that_present_priorityOrder = true; if (this_present_priorityOrder || that_present_priorityOrder) { if (!(this_present_priorityOrder && that_present_priorityOrder)) return false; if (this.priorityOrder != that.priorityOrder) return false; } return true; }
lastComparison = Boolean.valueOf(isSetJobSubmissionProtocol()).compareTo(other.isSetJobSubmissionProtocol()); if (lastComparison != 0) { return lastComparison; if (isSetJobSubmissionProtocol()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jobSubmissionProtocol, other.jobSubmissionProtocol); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetJobSubmissionProtocol()).compareTo(other.isSetJobSubmissionProtocol()); if (lastComparison != 0) { return lastComparison; if (isSetJobSubmissionProtocol()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jobSubmissionProtocol, other.jobSubmissionProtocol); if (lastComparison != 0) {
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetJobSubmissionInterfaceId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'jobSubmissionInterfaceId' is unset! Struct:" + toString()); } if (!isSetJobSubmissionProtocol()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'jobSubmissionProtocol' is unset! Struct:" + toString()); } if (!isSetPriorityOrder()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'priorityOrder' is unset! Struct:" + toString()); } // check for sub-struct validity }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetJobSubmissionInterfaceId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'jobSubmissionInterfaceId' is unset! Struct:" + toString()); } if (!isSetJobSubmissionProtocol()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'jobSubmissionProtocol' is unset! Struct:" + toString()); } if (!isSetPriorityOrder()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'priorityOrder' is unset! Struct:" + toString()); } // check for sub-struct validity }