public void validate() throws org.apache.thrift.TException { // check for required fields if (!isSetServer()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'server' is unset! Struct:" + toString()); } // check for sub-struct validity }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_server = true && (isSetServer()); builder.append(present_server); if (present_server) builder.append(server); boolean present_uri = true && (isSetUri()); builder.append(present_uri); if (present_uri) builder.append(uri); boolean present_db = true && (isSetDb()); builder.append(present_db); if (present_db) builder.append(db); boolean present_table = true && (isSetTable()); builder.append(present_table); if (present_table) builder.append(table); boolean present_column = true && (isSetColumn()); builder.append(present_column); if (present_column) builder.append(column); return builder.toHashCode(); }
/** 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 SERVER: return isSetServer(); case URI: return isSetUri(); case DB: return isSetDb(); case TABLE: return isSetTable(); case COLUMN: return isSetColumn(); } throw new IllegalStateException(); }
TSentryAuthorizable typedOther = (TSentryAuthorizable)other; lastComparison = Boolean.valueOf(isSetServer()).compareTo(typedOther.isSetServer()); if (lastComparison != 0) { return lastComparison; if (isSetServer()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.server, typedOther.server); if (lastComparison != 0) {
return false; boolean this_present_server = true && this.isSetServer(); boolean that_present_server = true && that.isSetServer(); if (this_present_server || that_present_server) { if (!(this_present_server && that_present_server))
/** * Performs a deep copy on <i>other</i>. */ public TSentryAuthorizable(TSentryAuthorizable other) { if (other.isSetServer()) { this.server = other.server; } if (other.isSetUri()) { this.uri = other.uri; } if (other.isSetDb()) { this.db = other.db; } if (other.isSetTable()) { this.table = other.table; } if (other.isSetColumn()) { this.column = other.column; } }