@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(); }
boolean this_present_version = true && this.is_set_version(); boolean that_present_version = true && that.is_set_version(); if (this_present_version || that_present_version) { if (!(this_present_version && that_present_version))
lastComparison = Boolean.valueOf(is_set_version()).compareTo(typedOther.is_set_version()); if (lastComparison != 0) { return lastComparison; if (is_set_version()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.version, typedOther.version); if (lastComparison != 0) {