/** 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 java.lang.IllegalArgumentException(); } switch (field) { case TABLE_ID: return isSetTableId(); case TABLE_NAME: return isSetTableName(); case OP: return isSetOp(); case TYPE: return isSetType(); case DESCRIPTION: return isSetDescription(); } throw new java.lang.IllegalStateException(); }
lastComparison = java.lang.Boolean.valueOf(isSetDescription()).compareTo(other.isSetDescription()); if (lastComparison != 0) { return lastComparison; if (isSetDescription()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.description, other.description); if (lastComparison != 0) {
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetTableId()) ? 131071 : 524287); if (isSetTableId()) hashCode = hashCode * 8191 + tableId.hashCode(); hashCode = hashCode * 8191 + ((isSetTableName()) ? 131071 : 524287); if (isSetTableName()) hashCode = hashCode * 8191 + tableName.hashCode(); hashCode = hashCode * 8191 + ((isSetOp()) ? 131071 : 524287); if (isSetOp()) hashCode = hashCode * 8191 + op.getValue(); hashCode = hashCode * 8191 + ((isSetType()) ? 131071 : 524287); if (isSetType()) hashCode = hashCode * 8191 + type.getValue(); hashCode = hashCode * 8191 + ((isSetDescription()) ? 131071 : 524287); if (isSetDescription()) hashCode = hashCode * 8191 + description.hashCode(); return hashCode; }
/** * Performs a deep copy on <i>other</i>. */ public ThriftTableOperationException(ThriftTableOperationException other) { if (other.isSetTableId()) { this.tableId = other.tableId; } if (other.isSetTableName()) { this.tableName = other.tableName; } if (other.isSetOp()) { this.op = other.op; } if (other.isSetType()) { this.type = other.type; } if (other.isSetDescription()) { this.description = other.description; } }
boolean this_present_description = true && this.isSetDescription(); boolean that_present_description = true && that.isSetDescription(); if (this_present_description || that_present_description) { if (!(this_present_description && that_present_description))
optionals.set(3); if (struct.isSetDescription()) { optionals.set(4); oprot.writeI32(struct.type.getValue()); if (struct.isSetDescription()) { oprot.writeString(struct.description);