/** 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 CONN_ID: return isSetConnId(); case CLIENT_HOST_NAME: return isSetClientHostName(); case CLIENT_ID: return isSetClientID(); case USER_NAME: return isSetUserName(); case TOKEN: return isSetToken(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetClientHostName()).compareTo(other.isSetClientHostName()); if (lastComparison != 0) { return lastComparison; if (isSetClientHostName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.clientHostName, other.clientHostName); if (lastComparison != 0) {
boolean this_present_clientHostName = true && this.isSetClientHostName(); boolean that_present_clientHostName = true && that.isSetClientHostName(); if (this_present_clientHostName || that_present_clientHostName) { if (!(this_present_clientHostName && that_present_clientHostName))
/** * Performs a deep copy on <i>other</i>. */ public ConnectionProperties(ConnectionProperties other) { __isset_bitfield = other.__isset_bitfield; this.connId = other.connId; if (other.isSetClientHostName()) { this.clientHostName = other.clientHostName; } if (other.isSetClientID()) { this.clientID = other.clientID; } if (other.isSetUserName()) { this.userName = other.userName; } if (other.isSetToken()) { this.token = org.apache.thrift.TBaseHelper.copyBinary(other.token); ; } }