/** * Performs a deep copy on <i>other</i>. */ public DRPCExecutionException(DRPCExecutionException other) { if (other.is_set_msg()) { this.msg = other.msg; } if (other.is_set_type()) { this.type = other.type; } }
/** 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 MSG: return is_set_msg(); case TYPE: return is_set_type(); } throw new java.lang.IllegalStateException(); }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((is_set_msg()) ? 131071 : 524287); if (is_set_msg()) hashCode = hashCode * 8191 + msg.hashCode(); hashCode = hashCode * 8191 + ((is_set_type()) ? 131071 : 524287); if (is_set_type()) hashCode = hashCode * 8191 + type.getValue(); return hashCode; }
public void validate() throws org.apache.storm.thrift.TException { // check for required fields if (!is_set_msg()) { throw new org.apache.storm.thrift.protocol.TProtocolException("Required field 'msg' is unset! Struct:" + toString()); } // check for sub-struct validity }
@Override public int compareTo(DRPCExecutionException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = java.lang.Boolean.valueOf(is_set_msg()).compareTo(other.is_set_msg()); if (lastComparison != 0) { return lastComparison; } if (is_set_msg()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.msg, other.msg); if (lastComparison != 0) { return lastComparison; } } lastComparison = java.lang.Boolean.valueOf(is_set_type()).compareTo(other.is_set_type()); if (lastComparison != 0) { return lastComparison; } if (is_set_type()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.type, other.type); if (lastComparison != 0) { return lastComparison; } } return 0; }
public boolean equals(DRPCExecutionException that) { if (that == null) return false; if (this == that) return true; boolean this_present_msg = true && this.is_set_msg(); boolean that_present_msg = true && that.is_set_msg(); if (this_present_msg || that_present_msg) { if (!(this_present_msg && that_present_msg)) return false; if (!this.msg.equals(that.msg)) return false; } boolean this_present_type = true && this.is_set_type(); boolean that_present_type = true && that.is_set_type(); if (this_present_type || that_present_type) { if (!(this_present_type && that_present_type)) return false; if (!this.type.equals(that.type)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public DRPCExecutionException(DRPCExecutionException other) { if (other.is_set_msg()) { this.msg = other.msg; } }
public boolean equals(DRPCExecutionException that) { if (that == null) return false; boolean this_present_msg = true && this.is_set_msg(); boolean that_present_msg = true && that.is_set_msg(); if (this_present_msg || that_present_msg) { if (!(this_present_msg && that_present_msg)) return false; if (!this.msg.equals(that.msg)) return false; } return true; }
/** 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 MSG: return is_set_msg(); } throw new IllegalStateException(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_msg = true && (is_set_msg()); list.add(present_msg); if (present_msg) list.add(msg); return list.hashCode(); }
@Override public int compareTo(DRPCExecutionException other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(is_set_msg()).compareTo(other.is_set_msg()); if (lastComparison != 0) { return lastComparison; } if (is_set_msg()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.msg, other.msg); if (lastComparison != 0) { return lastComparison; } } return 0; }
public void validate() throws org.apache.thrift.TException { // check for required fields if (!is_set_msg()) { throw new org.apache.thrift.protocol.TProtocolException("Required field 'msg' is unset! Struct:" + toString()); } // check for sub-struct validity }