/** * Performs a deep copy on <i>other</i>. */ public DRPCRequest(DRPCRequest other) { if (other.is_set_func_args()) { this.func_args = other.func_args; } if (other.is_set_request_id()) { this.request_id = other.request_id; } }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((is_set_func_args()) ? 131071 : 524287); if (is_set_func_args()) hashCode = hashCode * 8191 + func_args.hashCode(); hashCode = hashCode * 8191 + ((is_set_request_id()) ? 131071 : 524287); if (is_set_request_id()) hashCode = hashCode * 8191 + request_id.hashCode(); return hashCode; }
/** 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 FUNC_ARGS: return is_set_func_args(); case REQUEST_ID: return is_set_request_id(); } throw new java.lang.IllegalStateException(); }
public boolean equals(DRPCRequest that) { if (that == null) return false; if (this == that) return true; boolean this_present_func_args = true && this.is_set_func_args(); boolean that_present_func_args = true && that.is_set_func_args(); if (this_present_func_args || that_present_func_args) { if (!(this_present_func_args && that_present_func_args)) return false; if (!this.func_args.equals(that.func_args)) return false; } boolean this_present_request_id = true && this.is_set_request_id(); boolean that_present_request_id = true && that.is_set_request_id(); if (this_present_request_id || that_present_request_id) { if (!(this_present_request_id && that_present_request_id)) return false; if (!this.request_id.equals(that.request_id)) return false; } return true; }
@Override public int compareTo(DRPCRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = java.lang.Boolean.valueOf(is_set_func_args()).compareTo(other.is_set_func_args()); if (lastComparison != 0) { return lastComparison; } if (is_set_func_args()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.func_args, other.func_args); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.valueOf(is_set_request_id()).compareTo(other.is_set_request_id()); if (lastComparison != 0) { return lastComparison; } if (is_set_request_id()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.request_id, other.request_id); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void validate() throws org.apache.storm.thrift.TException { // check for required fields if (!is_set_func_args()) { throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'func_args' is unset! Struct:" + toString()); } if (!is_set_request_id()) { throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'request_id' is unset! Struct:" + toString()); } // check for sub-struct validity }
/** * Performs a deep copy on <i>other</i>. */ public DRPCRequest(DRPCRequest other) { if (other.is_set_func_args()) { this.func_args = other.func_args; } if (other.is_set_request_id()) { this.request_id = other.request_id; } }
/** 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 FUNC_ARGS: return is_set_func_args(); case REQUEST_ID: return is_set_request_id(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_func_args = true && (is_set_func_args()); list.add(present_func_args); if (present_func_args) list.add(func_args); boolean present_request_id = true && (is_set_request_id()); list.add(present_request_id); if (present_request_id) list.add(request_id); return list.hashCode(); }
public boolean equals(DRPCRequest that) { if (that == null) return false; boolean this_present_func_args = true && this.is_set_func_args(); boolean that_present_func_args = true && that.is_set_func_args(); if (this_present_func_args || that_present_func_args) { if (!(this_present_func_args && that_present_func_args)) return false; if (!this.func_args.equals(that.func_args)) return false; } boolean this_present_request_id = true && this.is_set_request_id(); boolean that_present_request_id = true && that.is_set_request_id(); if (this_present_request_id || that_present_request_id) { if (!(this_present_request_id && that_present_request_id)) return false; if (!this.request_id.equals(that.request_id)) return false; } return true; }
@Override public int compareTo(DRPCRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(is_set_func_args()).compareTo(other.is_set_func_args()); if (lastComparison != 0) { return lastComparison; } if (is_set_func_args()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.func_args, other.func_args); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_request_id()).compareTo(other.is_set_request_id()); if (lastComparison != 0) { return lastComparison; } if (is_set_request_id()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request_id, other.request_id); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_func_args()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'func_args' is unset! Struct:" + toString()); } if (!is_set_request_id()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'request_id' is unset! Struct:" + toString()); } // check for sub-struct validity }