/** 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(); }
@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; } }