@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_status = true && (isSetStatus()); list.add(present_status); if (present_status) list.add(status); boolean present_serverProtocolVersion = true && (isSetServerProtocolVersion()); list.add(present_serverProtocolVersion); if (present_serverProtocolVersion) list.add(serverProtocolVersion.getValue()); boolean present_sessionHandle = true && (isSetSessionHandle()); list.add(present_sessionHandle); if (present_sessionHandle) list.add(sessionHandle); boolean present_configuration = true && (isSetConfiguration()); list.add(present_configuration); if (present_configuration) list.add(configuration); 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 STATUS: return isSetStatus(); case SERVER_PROTOCOL_VERSION: return isSetServerProtocolVersion(); case SESSION_HANDLE: return isSetSessionHandle(); case CONFIGURATION: return isSetConfiguration(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetStatus()).compareTo(other.isSetStatus()); if (lastComparison != 0) { return lastComparison; if (isSetStatus()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, other.status); if (lastComparison != 0) {
/** * Performs a deep copy on <i>other</i>. */ public TOpenSessionResp(TOpenSessionResp other) { if (other.isSetStatus()) { this.status = new TStatus(other.status); } if (other.isSetServerProtocolVersion()) { this.serverProtocolVersion = other.serverProtocolVersion; } if (other.isSetSessionHandle()) { this.sessionHandle = new TSessionHandle(other.sessionHandle); } if (other.isSetConfiguration()) { Map<String,String> __this__configuration = new HashMap<String,String>(other.configuration); this.configuration = __this__configuration; } }
return false; boolean this_present_status = true && this.isSetStatus(); boolean that_present_status = true && that.isSetStatus(); if (this_present_status || that_present_status) { if (!(this_present_status && that_present_status))
public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetStatus()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'status' is unset! Struct:" + toString()); } if (!isSetServerProtocolVersion()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'serverProtocolVersion' is unset! Struct:" + toString()); } // check for sub-struct validity if (status != null) { status.validate(); } if (sessionHandle != null) { sessionHandle.validate(); } }