public Object getFieldValue(_Fields field) { switch (field) { case ID: return get_id(); case RESULT: return get_result(); } throw new IllegalStateException(); }
public int compareTo(result_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; result_args typedOther = (result_args)other; lastComparison = Boolean.valueOf(is_set_id()).compareTo(typedOther.is_set_id()); if (lastComparison != 0) { return lastComparison; } if (is_set_id()) { lastComparison = org.apache.thrift7.TBaseHelper.compareTo(this.id, typedOther.id); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_result()).compareTo(typedOther.is_set_result()); if (lastComparison != 0) { return lastComparison; } if (is_set_result()) { lastComparison = org.apache.thrift7.TBaseHelper.compareTo(this.result, typedOther.result); if (lastComparison != 0) { return lastComparison; } } return 0; }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift7.protocol.TCompactProtocol(new org.apache.thrift7.transport.TIOStreamTransport(in))); } catch (org.apache.thrift7.TException te) { throw new java.io.IOException(te); } }
@Override public int compareTo(result_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(is_set_id()).compareTo(other.is_set_id()); if (lastComparison != 0) { return lastComparison; } if (is_set_id()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, other.id); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_result()).compareTo(other.is_set_result()); if (lastComparison != 0) { return lastComparison; } if (is_set_result()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.result, other.result); if (lastComparison != 0) { return lastComparison; } } return 0; }
public int compareTo(result_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; result_args typedOther = (result_args)other; lastComparison = Boolean.valueOf(is_set_id()).compareTo(typedOther.is_set_id()); if (lastComparison != 0) { return lastComparison; } if (is_set_id()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_result()).compareTo(typedOther.is_set_result()); if (lastComparison != 0) { return lastComparison; } if (is_set_result()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.result, typedOther.result); if (lastComparison != 0) { return lastComparison; } } return 0; }
public boolean equals(result_args that) { if (that == null) return false; boolean this_present_id = true && this.is_set_id(); boolean that_present_id = true && that.is_set_id(); if (this_present_id || that_present_id) { if (!(this_present_id && that_present_id)) return false; if (!this.id.equals(that.id)) return false; } boolean this_present_result = true && this.is_set_result(); boolean that_present_result = true && that.is_set_result(); if (this_present_result || that_present_result) { if (!(this_present_result && that_present_result)) return false; if (!this.result.equals(that.result)) return false; } return true; }
public boolean equals(result_args that) { if (that == null) return false; boolean this_present_id = true && this.is_set_id(); boolean that_present_id = true && that.is_set_id(); if (this_present_id || that_present_id) { if (!(this_present_id && that_present_id)) return false; if (!this.id.equals(that.id)) return false; } boolean this_present_result = true && this.is_set_result(); boolean that_present_result = true && that.is_set_result(); if (this_present_result || that_present_result) { if (!(this_present_result && that_present_result)) return false; if (!this.result.equals(that.result)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, result_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.is_set_id()) { optionals.set(0); } if (struct.is_set_result()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.is_set_id()) { oprot.writeString(struct.id); } if (struct.is_set_result()) { oprot.writeString(struct.result); } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case ID: if (value == null) { unset_id(); } else { set_id((String)value); } break; case RESULT: if (value == null) { unset_result(); } else { set_result((String)value); } break; } }
public void setFieldValue(_Fields field, Object value) { switch (field) { case ID: if (value == null) { unset_id(); } else { set_id((String)value); } break; case RESULT: if (value == null) { unset_result(); } else { set_result((String)value); } break; } }
public result_args deepCopy() { return new result_args(this); }
public result_args getEmptyArgsInstance() { return new result_args(); }
public result_args getEmptyArgsInstance() { return new result_args(); }
public result_args deepCopy() { return new result_args(this); }
protected result_args getEmptyArgsInstance() { return new result_args(); }
/** 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 RESULT: return is_set_result(); } throw new IllegalStateException(); }
@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_result = true && (is_set_result()); builder.append(present_result); if (present_result) builder.append(result); 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 ID: return is_set_id(); case RESULT: return is_set_result(); } throw new IllegalStateException(); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof result_args) return this.equals((result_args)that); return false; }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof result_args) return this.equals((result_args)that); return false; }