lastComparison = Boolean.valueOf(isSetSecurity()).compareTo(other.isSetSecurity()); if (lastComparison != 0) { return lastComparison; if (isSetSecurity()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.security, other.security); if (lastComparison != 0) {
/** * Performs a deep copy on <i>other</i>. */ public OpenConnectionArgs(OpenConnectionArgs other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetClientHostName()) { this.clientHostName = other.clientHostName; } if (other.isSetClientID()) { this.clientID = other.clientID; } if (other.isSetSecurity()) { this.security = other.security; } if (other.isSetUserName()) { this.userName = other.userName; } if (other.isSetPassword()) { this.password = other.password; } this.tokenSize = other.tokenSize; this.useStringForDecimal = other.useStringForDecimal; if (other.isSetProperties()) { Map<String,String> __this__properties = new HashMap<String,String>(other.properties); this.properties = __this__properties; } }
/** 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 CLIENT_HOST_NAME: return isSetClientHostName(); case CLIENT_ID: return isSetClientID(); case SECURITY: return isSetSecurity(); case USER_NAME: return isSetUserName(); case PASSWORD: return isSetPassword(); case TOKEN_SIZE: return isSetTokenSize(); case USE_STRING_FOR_DECIMAL: return isSetUseStringForDecimal(); case PROPERTIES: return isSetProperties(); } throw new IllegalStateException(); }
boolean this_present_security = true && this.isSetSecurity(); boolean that_present_security = true && that.isSetSecurity(); if (this_present_security || that_present_security) { if (!(this_present_security && that_present_security))