@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_domain_id = true; builder.append(present_domain_id); if (present_domain_id) builder.append(domain_id); boolean present_key = true && (is_set_key()); builder.append(present_key); if (present_key) builder.append(key); return builder.toHashCode(); }
public int compareTo(get_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; get_args typedOther = (get_args)other; lastComparison = Boolean.valueOf(is_set_domain_id()).compareTo(typedOther.is_set_domain_id()); if (lastComparison != 0) { return lastComparison; } if (is_set_domain_id()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.domain_id, typedOther.domain_id); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_key()).compareTo(typedOther.is_set_key()); if (lastComparison != 0) { return lastComparison; } if (is_set_key()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key, typedOther.key); if (lastComparison != 0) { return lastComparison; } } return 0; }
/** 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 DOMAIN_ID: return is_set_domain_id(); case KEY: return is_set_key(); } throw new IllegalStateException(); }
public boolean equals(get_args that) { if (that == null) return false; boolean this_present_domain_id = true; boolean that_present_domain_id = true; if (this_present_domain_id || that_present_domain_id) { if (!(this_present_domain_id && that_present_domain_id)) return false; if (this.domain_id != that.domain_id) return false; } boolean this_present_key = true && this.is_set_key(); boolean that_present_key = true && that.is_set_key(); if (this_present_key || that_present_key) { if (!(this_present_key && that_present_key)) return false; if (!this.key.equals(that.key)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, get_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.is_set_domain_id()) { optionals.set(0); } if (struct.is_set_key()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.is_set_domain_id()) { oprot.writeI32(struct.domain_id); } if (struct.is_set_key()) { oprot.writeBinary(struct.key); } }
/** * Performs a deep copy on <i>other</i>. */ public get_args(get_args other) { __isset_bitfield = other.__isset_bitfield; this.domain_id = other.domain_id; if (other.is_set_key()) { this.key = org.apache.thrift.TBaseHelper.copyBinary(other.key); ; } }