@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_securityProtocol = true && (isSetSecurityProtocol()); list.add(present_securityProtocol); if (present_securityProtocol) list.add(securityProtocol.getValue()); boolean present_unicoreEndPointURL = true && (isSetUnicoreEndPointURL()); list.add(present_unicoreEndPointURL); if (present_unicoreEndPointURL) list.add(unicoreEndPointURL); 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 SECURITY_PROTOCOL: return isSetSecurityProtocol(); case UNICORE_END_POINT_URL: return isSetUnicoreEndPointURL(); } throw new IllegalStateException(); }
@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_securityProtocol = true && (isSetSecurityProtocol()); list.add(present_securityProtocol); if (present_securityProtocol) list.add(securityProtocol.getValue()); boolean present_unicoreEndPointURL = true && (isSetUnicoreEndPointURL()); list.add(present_unicoreEndPointURL); if (present_unicoreEndPointURL) list.add(unicoreEndPointURL); 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 SECURITY_PROTOCOL: return isSetSecurityProtocol(); case UNICORE_END_POINT_URL: return isSetUnicoreEndPointURL(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public UnicoreJobSubmission(UnicoreJobSubmission other) { if (other.isSetJobSubmissionInterfaceId()) { this.jobSubmissionInterfaceId = other.jobSubmissionInterfaceId; } if (other.isSetSecurityProtocol()) { this.securityProtocol = other.securityProtocol; } if (other.isSetUnicoreEndPointURL()) { this.unicoreEndPointURL = other.unicoreEndPointURL; } }
/** * Performs a deep copy on <i>other</i>. */ public UnicoreJobSubmission(UnicoreJobSubmission other) { if (other.isSetJobSubmissionInterfaceId()) { this.jobSubmissionInterfaceId = other.jobSubmissionInterfaceId; } if (other.isSetSecurityProtocol()) { this.securityProtocol = other.securityProtocol; } if (other.isSetUnicoreEndPointURL()) { this.unicoreEndPointURL = other.unicoreEndPointURL; } }
lastComparison = Boolean.valueOf(isSetJobSubmissionInterfaceId()).compareTo(other.isSetJobSubmissionInterfaceId()); if (lastComparison != 0) { return lastComparison; if (isSetJobSubmissionInterfaceId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jobSubmissionInterfaceId, other.jobSubmissionInterfaceId); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetJobSubmissionInterfaceId()).compareTo(other.isSetJobSubmissionInterfaceId()); if (lastComparison != 0) { return lastComparison; if (isSetJobSubmissionInterfaceId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jobSubmissionInterfaceId, other.jobSubmissionInterfaceId); if (lastComparison != 0) {
public boolean equals(UnicoreJobSubmission 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_securityProtocol = true && this.isSetSecurityProtocol(); boolean that_present_securityProtocol = true && that.isSetSecurityProtocol(); if (this_present_securityProtocol || that_present_securityProtocol) { if (!(this_present_securityProtocol && that_present_securityProtocol)) return false; if (!this.securityProtocol.equals(that.securityProtocol)) return false; } boolean this_present_unicoreEndPointURL = true && this.isSetUnicoreEndPointURL(); boolean that_present_unicoreEndPointURL = true && that.isSetUnicoreEndPointURL(); if (this_present_unicoreEndPointURL || that_present_unicoreEndPointURL) { if (!(this_present_unicoreEndPointURL && that_present_unicoreEndPointURL)) return false; if (!this.unicoreEndPointURL.equals(that.unicoreEndPointURL)) return false; } return true; }
public boolean equals(UnicoreJobSubmission 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_securityProtocol = true && this.isSetSecurityProtocol(); boolean that_present_securityProtocol = true && that.isSetSecurityProtocol(); if (this_present_securityProtocol || that_present_securityProtocol) { if (!(this_present_securityProtocol && that_present_securityProtocol)) return false; if (!this.securityProtocol.equals(that.securityProtocol)) return false; } boolean this_present_unicoreEndPointURL = true && this.isSetUnicoreEndPointURL(); boolean that_present_unicoreEndPointURL = true && that.isSetUnicoreEndPointURL(); if (this_present_unicoreEndPointURL || that_present_unicoreEndPointURL) { if (!(this_present_unicoreEndPointURL && that_present_unicoreEndPointURL)) return false; if (!this.unicoreEndPointURL.equals(that.unicoreEndPointURL)) return false; } return true; }
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 (!isSetSecurityProtocol()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'securityProtocol' is unset! Struct:" + toString()); } if (!isSetUnicoreEndPointURL()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'unicoreEndPointURL' 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 (!isSetSecurityProtocol()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'securityProtocol' is unset! Struct:" + toString()); } if (!isSetUnicoreEndPointURL()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'unicoreEndPointURL' is unset! Struct:" + toString()); } // check for sub-struct validity }