/** * 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() { 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(); }
/** 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(); }
/** * 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() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_func_args = true && (is_set_func_args()); builder.append(present_func_args); if (present_func_args) builder.append(func_args); boolean present_request_id = true && (is_set_request_id()); builder.append(present_request_id); if (present_request_id) builder.append(request_id); return builder.toHashCode(); }
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 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; }
public int compareTo(DRPCRequest other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; DRPCRequest typedOther = (DRPCRequest)other; lastComparison = Boolean.valueOf(is_set_func_args()).compareTo(typedOther.is_set_func_args()); if (lastComparison != 0) { return lastComparison; } if (is_set_func_args()) { lastComparison = org.apache.thrift7.TBaseHelper.compareTo(this.func_args, typedOther.func_args); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_request_id()).compareTo(typedOther.is_set_request_id()); if (lastComparison != 0) { return lastComparison; } if (is_set_request_id()) { lastComparison = org.apache.thrift7.TBaseHelper.compareTo(this.request_id, typedOther.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 }
public void validate() throws org.apache.thrift7.TException { // check for required fields if (!is_set_func_args()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'func_args' is unset! Struct:" + toString()); } if (!is_set_request_id()) { throw new org.apache.thrift7.protocol.TProtocolException("Required field 'request_id' is unset! Struct:" + toString()); } }
/** * 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; } }
/** * 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() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_func_args = true && (is_set_func_args()); builder.append(present_func_args); if (present_func_args) builder.append(func_args); boolean present_request_id = true && (is_set_request_id()); builder.append(present_request_id); if (present_request_id) builder.append(request_id); 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 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(); }
/** 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(); }
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()); } }
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 }