@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_updates = true && (isSetUpdates()); list.add(present_updates); if (present_updates) list.add(updates); return list.hashCode(); }
/** 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 UPDATES: return isSetUpdates(); } throw new IllegalStateException(); }
@Override public int compareTo(sendUserConfigurationUpdates_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetUpdates()).compareTo(other.isSetUpdates()); if (lastComparison != 0) { return lastComparison; } if (isSetUpdates()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.updates, other.updates); if (lastComparison != 0) { return lastComparison; } } return 0; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, sendUserConfigurationUpdates_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetUpdates()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetUpdates()) { { oprot.writeI32(struct.updates.size()); for (UserConfigurationUpdate _iter28 : struct.updates) { _iter28.write(oprot); } } } }
public boolean equals(sendUserConfigurationUpdates_args that) { if (that == null) return false; boolean this_present_updates = true && this.isSetUpdates(); boolean that_present_updates = true && that.isSetUpdates(); if (this_present_updates || that_present_updates) { if (!(this_present_updates && that_present_updates)) return false; if (!this.updates.equals(that.updates)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public sendUserConfigurationUpdates_args(sendUserConfigurationUpdates_args other) { if (other.isSetUpdates()) { List<UserConfigurationUpdate> __this__updates = new ArrayList<UserConfigurationUpdate>(other.updates.size()); for (UserConfigurationUpdate other_element : other.updates) { __this__updates.add(new UserConfigurationUpdate(other_element)); } this.updates = __this__updates; } }