public boolean equals(RuntimeStatisticsSummary that) { if (that == null) return false; boolean this_present_domain_statistics = true && this.is_set_domain_statistics(); boolean that_present_domain_statistics = true && that.is_set_domain_statistics(); if (this_present_domain_statistics || that_present_domain_statistics) { if (!(this_present_domain_statistics && that_present_domain_statistics)) return false; if (!this.domain_statistics.equals(that.domain_statistics)) 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 DOMAIN_STATISTICS: return is_set_domain_statistics(); } throw new IllegalStateException(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_domain_statistics = true && (is_set_domain_statistics()); builder.append(present_domain_statistics); if (present_domain_statistics) builder.append(domain_statistics); return builder.toHashCode(); }
public int compareTo(RuntimeStatisticsSummary other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; RuntimeStatisticsSummary typedOther = (RuntimeStatisticsSummary)other; lastComparison = Boolean.valueOf(is_set_domain_statistics()).compareTo(typedOther.is_set_domain_statistics()); if (lastComparison != 0) { return lastComparison; } if (is_set_domain_statistics()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.domain_statistics, typedOther.domain_statistics); if (lastComparison != 0) { return lastComparison; } } return 0; }
/** * Performs a deep copy on <i>other</i>. */ public RuntimeStatisticsSummary(RuntimeStatisticsSummary other) { if (other.is_set_domain_statistics()) { Map<String,DomainStatisticsSummary> __this__domain_statistics = new HashMap<String,DomainStatisticsSummary>(); for (Map.Entry<String, DomainStatisticsSummary> other_element : other.domain_statistics.entrySet()) { String other_element_key = other_element.getKey(); DomainStatisticsSummary other_element_value = other_element.getValue(); String __this__domain_statistics_copy_key = other_element_key; DomainStatisticsSummary __this__domain_statistics_copy_value = new DomainStatisticsSummary(other_element_value); __this__domain_statistics.put(__this__domain_statistics_copy_key, __this__domain_statistics_copy_value); } this.domain_statistics = __this__domain_statistics; } }