@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_id = true && (is_set_id()); builder.append(present_id); if (present_id) builder.append(id); boolean present_name = true && (is_set_name()); builder.append(present_name); if (present_name) builder.append(name); boolean present_uptime_secs = true; builder.append(present_uptime_secs); if (present_uptime_secs) builder.append(uptime_secs); boolean present_executors = true && (is_set_executors()); builder.append(present_executors); if (present_executors) builder.append(executors); boolean present_status = true && (is_set_status()); builder.append(present_status); if (present_status) builder.append(status); boolean present_errors = true && (is_set_errors()); builder.append(present_errors); if (present_errors) builder.append(errors); return builder.toHashCode(); }
this.status = other.status; if (other.is_set_errors()) { Map<String,List<ErrorInfo>> __this__errors = new HashMap<String,List<ErrorInfo>>(); for (Map.Entry<String, List<ErrorInfo>> other_element : other.errors.entrySet()) {
/** 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 ID: return is_set_id(); case NAME: return is_set_name(); case UPTIME_SECS: return is_set_uptime_secs(); case EXECUTORS: return is_set_executors(); case STATUS: return is_set_status(); case ERRORS: return is_set_errors(); } throw new IllegalStateException(); }
boolean this_present_errors = true && this.is_set_errors(); boolean that_present_errors = true && that.is_set_errors(); if (this_present_errors || that_present_errors) { if (!(this_present_errors && that_present_errors))
lastComparison = Boolean.valueOf(is_set_errors()).compareTo(typedOther.is_set_errors()); if (lastComparison != 0) { return lastComparison; if (is_set_errors()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.errors, typedOther.errors); if (lastComparison != 0) {
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_id()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'id' is unset! Struct:" + toString()); } if (!is_set_name()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'name' is unset! Struct:" + toString()); } if (!is_set_uptime_secs()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'uptime_secs' is unset! Struct:" + toString()); } if (!is_set_executors()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'executors' is unset! Struct:" + toString()); } if (!is_set_status()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'status' is unset! Struct:" + toString()); } if (!is_set_errors()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'errors' is unset! Struct:" + toString()); } }