@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_nodeId = true && (isSetNodeId()); list.add(present_nodeId); if (present_nodeId) list.add(nodeId); boolean present_executableType = true && (isSetExecutableType()); list.add(present_executableType); if (present_executableType) list.add(executableType); boolean present_providerName = true && (isSetProviderName()); list.add(present_providerName); if (present_providerName) list.add(providerName.getValue()); boolean present_userAccountName = true && (isSetUserAccountName()); list.add(present_userAccountName); if (present_userAccountName) list.add(userAccountName); 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_securityProtocol = true && (isSetSecurityProtocol()); list.add(present_securityProtocol); if (present_securityProtocol) list.add(securityProtocol.getValue()); boolean present_nodeId = true && (isSetNodeId()); list.add(present_nodeId); if (present_nodeId) list.add(nodeId); boolean present_executableType = true && (isSetExecutableType()); list.add(present_executableType); if (present_executableType) list.add(executableType); boolean present_providerName = true && (isSetProviderName()); list.add(present_providerName); if (present_providerName) list.add(providerName.getValue()); boolean present_userAccountName = true && (isSetUserAccountName()); list.add(present_userAccountName); if (present_userAccountName) list.add(userAccountName); return list.hashCode(); }
lastComparison = Boolean.valueOf(isSetNodeId()).compareTo(other.isSetNodeId()); if (lastComparison != 0) { return lastComparison; if (isSetNodeId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nodeId, other.nodeId); if (lastComparison != 0) {
/** 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 NODE_ID: return isSetNodeId(); case EXECUTABLE_TYPE: return isSetExecutableType(); case PROVIDER_NAME: return isSetProviderName(); case USER_ACCOUNT_NAME: return isSetUserAccountName(); } 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 SECURITY_PROTOCOL: return isSetSecurityProtocol(); case NODE_ID: return isSetNodeId(); case EXECUTABLE_TYPE: return isSetExecutableType(); case PROVIDER_NAME: return isSetProviderName(); case USER_ACCOUNT_NAME: return isSetUserAccountName(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetNodeId()).compareTo(other.isSetNodeId()); if (lastComparison != 0) { return lastComparison; if (isSetNodeId()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.nodeId, other.nodeId); if (lastComparison != 0) {
boolean this_present_nodeId = true && this.isSetNodeId(); boolean that_present_nodeId = true && that.isSetNodeId(); if (this_present_nodeId || that_present_nodeId) { if (!(this_present_nodeId && that_present_nodeId))
/** * Performs a deep copy on <i>other</i>. */ public CloudJobSubmission(CloudJobSubmission other) { if (other.isSetJobSubmissionInterfaceId()) { this.jobSubmissionInterfaceId = other.jobSubmissionInterfaceId; } if (other.isSetSecurityProtocol()) { this.securityProtocol = other.securityProtocol; } if (other.isSetNodeId()) { this.nodeId = other.nodeId; } if (other.isSetExecutableType()) { this.executableType = other.executableType; } if (other.isSetProviderName()) { this.providerName = other.providerName; } if (other.isSetUserAccountName()) { this.userAccountName = other.userAccountName; } }
/** * Performs a deep copy on <i>other</i>. */ public CloudJobSubmission(CloudJobSubmission other) { if (other.isSetJobSubmissionInterfaceId()) { this.jobSubmissionInterfaceId = other.jobSubmissionInterfaceId; } if (other.isSetSecurityProtocol()) { this.securityProtocol = other.securityProtocol; } if (other.isSetNodeId()) { this.nodeId = other.nodeId; } if (other.isSetExecutableType()) { this.executableType = other.executableType; } if (other.isSetProviderName()) { this.providerName = other.providerName; } if (other.isSetUserAccountName()) { this.userAccountName = other.userAccountName; } }
boolean this_present_nodeId = true && this.isSetNodeId(); boolean that_present_nodeId = true && that.isSetNodeId(); if (this_present_nodeId || that_present_nodeId) { if (!(this_present_nodeId && that_present_nodeId))
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 (!isSetNodeId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'nodeId' is unset! Struct:" + toString()); } if (!isSetExecutableType()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'executableType' is unset! Struct:" + toString()); } if (!isSetProviderName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'providerName' is unset! Struct:" + toString()); } if (!isSetUserAccountName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'userAccountName' 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 (!isSetNodeId()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'nodeId' is unset! Struct:" + toString()); } if (!isSetExecutableType()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'executableType' is unset! Struct:" + toString()); } if (!isSetProviderName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'providerName' is unset! Struct:" + toString()); } if (!isSetUserAccountName()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'userAccountName' is unset! Struct:" + toString()); } // check for sub-struct validity }