@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_time_stamp = true; list.add(present_time_stamp); if (present_time_stamp) list.add(time_stamp); boolean present_added = true && (isSetAdded()); list.add(present_added); if (present_added) list.add(added); boolean present_removed = true && (isSetRemoved()); list.add(present_removed); if (present_removed) list.add(removed); boolean present_tableName = true && (isSetTableName()); list.add(present_tableName); if (present_tableName) list.add(tableName); return list.hashCode(); }
sb.append(this.time_stamp); first = false; if (isSetAdded()) { if (!first) sb.append(", "); sb.append("added:");
/** 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 TIME_STAMP: return isSetTime_stamp(); case ADDED: return isSetAdded(); case REMOVED: return isSetRemoved(); case TABLE_NAME: return isSetTableName(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public SchemaEvolutionEntry(SchemaEvolutionEntry other) { __isset_bitfield = other.__isset_bitfield; this.time_stamp = other.time_stamp; if (other.isSetAdded()) { List<ColumnSchema> __this__added = new ArrayList<ColumnSchema>(other.added.size()); for (ColumnSchema other_element : other.added) { __this__added.add(new ColumnSchema(other_element)); } this.added = __this__added; } if (other.isSetRemoved()) { List<ColumnSchema> __this__removed = new ArrayList<ColumnSchema>(other.removed.size()); for (ColumnSchema other_element : other.removed) { __this__removed.add(new ColumnSchema(other_element)); } this.removed = __this__removed; } if (other.isSetTableName()) { this.tableName = other.tableName; } }
boolean this_present_added = true && this.isSetAdded(); boolean that_present_added = true && that.isSetAdded(); if (this_present_added || that_present_added) { if (!(this_present_added && that_present_added))
lastComparison = Boolean.valueOf(isSetAdded()).compareTo(other.isSetAdded()); if (lastComparison != 0) { return lastComparison; if (isSetAdded()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.added, other.added); if (lastComparison != 0) {
oprot.writeFieldEnd(); if (struct.added != null) { if (struct.isSetAdded()) { oprot.writeFieldBegin(ADDED_FIELD_DESC);
oprot.writeI64(struct.time_stamp); BitSet optionals = new BitSet(); if (struct.isSetAdded()) { optionals.set(0); if (struct.isSetAdded()) {