@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_host = true && (is_set_host()); builder.append(present_host); if (present_host) builder.append(host); boolean present_connected_at = true; builder.append(present_connected_at); if (present_connected_at) builder.append(connected_at); boolean present_type = true && (is_set_type()); builder.append(present_type); if (present_type) builder.append(type); boolean present_version = true && (is_set_version()); builder.append(present_version); if (present_version) builder.append(version); return builder.toHashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public ClientMetadata(ClientMetadata other) { __isset_bitfield = other.__isset_bitfield; if (other.is_set_host()) { this.host = other.host; } this.connected_at = other.connected_at; if (other.is_set_type()) { this.type = other.type; } if (other.is_set_version()) { this.version = other.version; } }
/** 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 HOST: return is_set_host(); case CONNECTED_AT: return is_set_connected_at(); case TYPE: return is_set_type(); case VERSION: return is_set_version(); } throw new IllegalStateException(); }
return false; boolean this_present_host = true && this.is_set_host(); boolean that_present_host = true && that.is_set_host(); if (this_present_host || that_present_host) { if (!(this_present_host && that_present_host))
ClientMetadata typedOther = (ClientMetadata)other; lastComparison = Boolean.valueOf(is_set_host()).compareTo(typedOther.is_set_host()); if (lastComparison != 0) { return lastComparison; if (is_set_host()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.host, typedOther.host); if (lastComparison != 0) {