@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_id = true && (is_set_id()); list.add(present_id); if (present_id) list.add(id); boolean present_result = true && (is_set_result()); list.add(present_result); if (present_result) list.add(result); return list.hashCode(); }
@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(); }
@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 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); } }
@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(); }
/** 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(); }
/** * Performs a deep copy on <i>other</i>. */ public result_args(result_args other) { if (other.is_set_id()) { this.id = other.id; } if (other.is_set_result()) { this.result = other.result; } }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_id = true && (is_set_id()); list.add(present_id); if (present_id) list.add(id); boolean present_result = true && (is_set_result()); list.add(present_result); if (present_result) list.add(result); return list.hashCode(); }
/** * Performs a deep copy on <i>other</i>. */ public result_args(result_args other) { if (other.is_set_id()) { this.id = other.id; } if (other.is_set_result()) { this.result = other.result; } }
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; }
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; }
/** 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 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); } }
/** * Performs a deep copy on <i>other</i>. */ public result_args(result_args other) { if (other.is_set_id()) { this.id = other.id; } if (other.is_set_result()) { this.result = other.result; } }
/** 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(); }
/** * Performs a deep copy on <i>other</i>. */ public result_args(result_args other) { if (other.is_set_id()) { this.id = other.id; } if (other.is_set_result()) { this.result = other.result; } }