if (other.is_set_specific()) { this.specific = new ExecutorSpecificStats(other.specific);
/** 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 java.lang.IllegalArgumentException(); } switch (field) { case EMITTED: return is_set_emitted(); case TRANSFERRED: return is_set_transferred(); case SPECIFIC: return is_set_specific(); case RATE: return is_set_rate(); } throw new java.lang.IllegalStateException(); }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((is_set_emitted()) ? 131071 : 524287); if (is_set_emitted()) hashCode = hashCode * 8191 + emitted.hashCode(); hashCode = hashCode * 8191 + ((is_set_transferred()) ? 131071 : 524287); if (is_set_transferred()) hashCode = hashCode * 8191 + transferred.hashCode(); hashCode = hashCode * 8191 + ((is_set_specific()) ? 131071 : 524287); if (is_set_specific()) hashCode = hashCode * 8191 + specific.hashCode(); hashCode = hashCode * 8191 + org.apache.storm.thrift.TBaseHelper.hashCode(rate); return hashCode; }
boolean this_present_specific = true && this.is_set_specific(); boolean that_present_specific = true && that.is_set_specific(); if (this_present_specific || that_present_specific) { if (!(this_present_specific && that_present_specific))
lastComparison = java.lang.Boolean.valueOf(is_set_specific()).compareTo(other.is_set_specific()); if (lastComparison != 0) { return lastComparison; if (is_set_specific()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.specific, other.specific); if (lastComparison != 0) {
public void validate() throws org.apache.storm.thrift.TException { // check for required fields if (!is_set_emitted()) { throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'emitted' is unset! Struct:" + toString()); } if (!is_set_transferred()) { throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'transferred' is unset! Struct:" + toString()); } if (!is_set_specific()) { throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'specific' is unset! Struct:" + toString()); } if (!is_set_rate()) { throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'rate' is unset! Struct:" + toString()); } // check for sub-struct validity }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_emitted = true && (is_set_emitted()); list.add(present_emitted); if (present_emitted) list.add(emitted); boolean present_transferred = true && (is_set_transferred()); list.add(present_transferred); if (present_transferred) list.add(transferred); boolean present_specific = true && (is_set_specific()); list.add(present_specific); if (present_specific) list.add(specific); boolean present_rate = true; list.add(present_rate); if (present_rate) list.add(rate); return list.hashCode(); }
if (other.is_set_specific()) { this.specific = new ExecutorSpecificStats(other.specific);
/** 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 EMITTED: return is_set_emitted(); case TRANSFERRED: return is_set_transferred(); case SPECIFIC: return is_set_specific(); case RATE: return is_set_rate(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(is_set_specific()).compareTo(other.is_set_specific()); if (lastComparison != 0) { return lastComparison; if (is_set_specific()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.specific, other.specific); if (lastComparison != 0) {
boolean this_present_specific = true && this.is_set_specific(); boolean that_present_specific = true && that.is_set_specific(); if (this_present_specific || that_present_specific) { if (!(this_present_specific && that_present_specific))
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_emitted()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'emitted' is unset! Struct:" + toString()); } if (!is_set_transferred()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'transferred' is unset! Struct:" + toString()); } if (!is_set_specific()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'specific' is unset! Struct:" + toString()); } if (!is_set_rate()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'rate' is unset! Struct:" + toString()); } // check for sub-struct validity }