public boolean equals(SchemaEvolution that) { if (that == null) return false; boolean this_present_schema_evolution_history = true && this.isSetSchema_evolution_history(); boolean that_present_schema_evolution_history = true && that.isSetSchema_evolution_history(); if (this_present_schema_evolution_history || that_present_schema_evolution_history) { if (!(this_present_schema_evolution_history && that_present_schema_evolution_history)) return false; if (!this.schema_evolution_history.equals(that.schema_evolution_history)) return false; } return true; }
/** 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 SCHEMA_EVOLUTION_HISTORY: return isSetSchema_evolution_history(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_schema_evolution_history = true && (isSetSchema_evolution_history()); list.add(present_schema_evolution_history); if (present_schema_evolution_history) list.add(schema_evolution_history); return list.hashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public SchemaEvolution(SchemaEvolution other) { if (other.isSetSchema_evolution_history()) { List<SchemaEvolutionEntry> __this__schema_evolution_history = new ArrayList<SchemaEvolutionEntry>(other.schema_evolution_history.size()); for (SchemaEvolutionEntry other_element : other.schema_evolution_history) { __this__schema_evolution_history.add(new SchemaEvolutionEntry(other_element)); } this.schema_evolution_history = __this__schema_evolution_history; } }
@Override public int compareTo(SchemaEvolution other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetSchema_evolution_history()).compareTo(other.isSetSchema_evolution_history()); if (lastComparison != 0) { return lastComparison; } if (isSetSchema_evolution_history()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.schema_evolution_history, other.schema_evolution_history); if (lastComparison != 0) { return lastComparison; } } return 0; }