/** * Performs a deep copy on <i>other</i>. */ public getAllServersWithPreferredServer_args(getAllServersWithPreferredServer_args other) { if (other.isSetServerTypes()) { Set<ServerType> __this__serverTypes = new HashSet<ServerType>(other.serverTypes.size()); for (ServerType other_element : other.serverTypes) { __this__serverTypes.add(other_element); } this.serverTypes = __this__serverTypes; } if (other.isSetServerGroups()) { Set<String> __this__serverGroups = new HashSet<String>(other.serverGroups); this.serverGroups = __this__serverGroups; } if (other.isSetFailedServers()) { Set<HostAddress> __this__failedServers = new HashSet<HostAddress>(other.failedServers.size()); for (HostAddress other_element : other.failedServers) { __this__failedServers.add(new HostAddress(other_element)); } this.failedServers = __this__failedServers; } }
lastComparison = Boolean.valueOf(isSetServerGroups()).compareTo(other.isSetServerGroups()); if (lastComparison != 0) { return lastComparison; if (isSetServerGroups()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serverGroups, other.serverGroups); if (lastComparison != 0) {
/** 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 SERVER_TYPES: return isSetServerTypes(); case SERVER_GROUPS: return isSetServerGroups(); case FAILED_SERVERS: return isSetFailedServers(); } throw new IllegalStateException(); }
optionals.set(0); if (struct.isSetServerGroups()) { optionals.set(1); if (struct.isSetServerGroups()) {
public boolean equals(getAllServersWithPreferredServer_args that) { if (that == null) return false; boolean this_present_serverTypes = true && this.isSetServerTypes(); boolean that_present_serverTypes = true && that.isSetServerTypes(); if (this_present_serverTypes || that_present_serverTypes) { if (!(this_present_serverTypes && that_present_serverTypes)) return false; if (!this.serverTypes.equals(that.serverTypes)) return false; } boolean this_present_serverGroups = true && this.isSetServerGroups(); boolean that_present_serverGroups = true && that.isSetServerGroups(); if (this_present_serverGroups || that_present_serverGroups) { if (!(this_present_serverGroups && that_present_serverGroups)) return false; if (!this.serverGroups.equals(that.serverGroups)) return false; } boolean this_present_failedServers = true && this.isSetFailedServers(); boolean that_present_failedServers = true && that.isSetFailedServers(); if (this_present_failedServers || that_present_failedServers) { if (!(this_present_failedServers && that_present_failedServers)) return false; if (!this.failedServers.equals(that.failedServers)) return false; } return true; }