@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_acked = true && (is_set_acked()); builder.append(present_acked); if (present_acked) builder.append(acked); boolean present_failed = true && (is_set_failed()); builder.append(present_failed); if (present_failed) builder.append(failed); boolean present_complete_ms_avg = true && (is_set_complete_ms_avg()); builder.append(present_complete_ms_avg); if (present_complete_ms_avg) builder.append(complete_ms_avg); return builder.toHashCode(); }
/** 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 ACKED: return is_set_acked(); case FAILED: return is_set_failed(); case COMPLETE_MS_AVG: return is_set_complete_ms_avg(); } throw new IllegalStateException(); }
if (other.is_set_failed()) { Map<String,Map<String,Long>> __this__failed = new HashMap<String,Map<String,Long>>(); for (Map.Entry<String, Map<String,Long>> other_element : other.failed.entrySet()) {
public boolean equals(SpoutStats that) { if (that == null) return false; boolean this_present_acked = true && this.is_set_acked(); boolean that_present_acked = true && that.is_set_acked(); if (this_present_acked || that_present_acked) { if (!(this_present_acked && that_present_acked)) return false; if (!this.acked.equals(that.acked)) return false; } boolean this_present_failed = true && this.is_set_failed(); boolean that_present_failed = true && that.is_set_failed(); if (this_present_failed || that_present_failed) { if (!(this_present_failed && that_present_failed)) return false; if (!this.failed.equals(that.failed)) return false; } boolean this_present_complete_ms_avg = true && this.is_set_complete_ms_avg(); boolean that_present_complete_ms_avg = true && that.is_set_complete_ms_avg(); if (this_present_complete_ms_avg || that_present_complete_ms_avg) { if (!(this_present_complete_ms_avg && that_present_complete_ms_avg)) return false; if (!this.complete_ms_avg.equals(that.complete_ms_avg)) return false; } return true; }
lastComparison = Boolean.valueOf(is_set_failed()).compareTo(typedOther.is_set_failed()); if (lastComparison != 0) { return lastComparison; if (is_set_failed()) { lastComparison = org.apache.thrift7.TBaseHelper.compareTo(this.failed, typedOther.failed); if (lastComparison != 0) {
public void validate() throws org.apache.thrift7.TException { // check for required fields if (!is_set_acked()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'acked' is unset! Struct:" + toString()); } if (!is_set_failed()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'failed' is unset! Struct:" + toString()); } if (!is_set_complete_ms_avg()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'complete_ms_avg' is unset! Struct:" + toString()); } }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_acked = true && (is_set_acked()); builder.append(present_acked); if (present_acked) builder.append(acked); boolean present_failed = true && (is_set_failed()); builder.append(present_failed); if (present_failed) builder.append(failed); boolean present_complete_ms_avg = true && (is_set_complete_ms_avg()); builder.append(present_complete_ms_avg); if (present_complete_ms_avg) builder.append(complete_ms_avg); return builder.toHashCode(); }
/** 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 ACKED: return is_set_acked(); case FAILED: return is_set_failed(); case COMPLETE_MS_AVG: return is_set_complete_ms_avg(); } throw new IllegalStateException(); }
if (other.is_set_failed()) { Map<String,Map<String,Long>> __this__failed = new HashMap<String,Map<String,Long>>(); for (Map.Entry<String, Map<String,Long>> other_element : other.failed.entrySet()) {
public boolean equals(SpoutStats that) { if (that == null) return false; boolean this_present_acked = true && this.is_set_acked(); boolean that_present_acked = true && that.is_set_acked(); if (this_present_acked || that_present_acked) { if (!(this_present_acked && that_present_acked)) return false; if (!this.acked.equals(that.acked)) return false; } boolean this_present_failed = true && this.is_set_failed(); boolean that_present_failed = true && that.is_set_failed(); if (this_present_failed || that_present_failed) { if (!(this_present_failed && that_present_failed)) return false; if (!this.failed.equals(that.failed)) return false; } boolean this_present_complete_ms_avg = true && this.is_set_complete_ms_avg(); boolean that_present_complete_ms_avg = true && that.is_set_complete_ms_avg(); if (this_present_complete_ms_avg || that_present_complete_ms_avg) { if (!(this_present_complete_ms_avg && that_present_complete_ms_avg)) return false; if (!this.complete_ms_avg.equals(that.complete_ms_avg)) return false; } return true; }
lastComparison = Boolean.valueOf(is_set_failed()).compareTo(typedOther.is_set_failed()); if (lastComparison != 0) { return lastComparison; if (is_set_failed()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.failed, typedOther.failed); if (lastComparison != 0) {
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_acked()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'acked' is unset! Struct:" + toString()); } if (!is_set_failed()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'failed' is unset! Struct:" + toString()); } if (!is_set_complete_ms_avg()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'complete_ms_avg' is unset! Struct:" + toString()); } }