@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_domain_name = true && (is_set_domain_name()); builder.append(present_domain_name); if (present_domain_name) builder.append(domain_name); boolean present_keys = true && (is_set_keys()); builder.append(present_keys); if (present_keys) builder.append(keys); return builder.toHashCode(); }
public int compareTo(getBulk_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; getBulk_args typedOther = (getBulk_args)other; lastComparison = Boolean.valueOf(is_set_domain_name()).compareTo(typedOther.is_set_domain_name()); if (lastComparison != 0) { return lastComparison; } if (is_set_domain_name()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.domain_name, typedOther.domain_name); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(is_set_keys()).compareTo(typedOther.is_set_keys()); if (lastComparison != 0) { return lastComparison; } if (is_set_keys()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.keys, typedOther.keys); 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_NAME: return is_set_domain_name(); case KEYS: return is_set_keys(); } throw new IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, getBulk_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.is_set_domain_name()) { optionals.set(0); } if (struct.is_set_keys()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.is_set_domain_name()) { oprot.writeString(struct.domain_name); } if (struct.is_set_keys()) { { oprot.writeI32(struct.keys.size()); for (ByteBuffer _iter108 : struct.keys) { oprot.writeBinary(_iter108); } } } }
public boolean equals(getBulk_args that) { if (that == null) return false; boolean this_present_domain_name = true && this.is_set_domain_name(); boolean that_present_domain_name = true && that.is_set_domain_name(); if (this_present_domain_name || that_present_domain_name) { if (!(this_present_domain_name && that_present_domain_name)) return false; if (!this.domain_name.equals(that.domain_name)) return false; } boolean this_present_keys = true && this.is_set_keys(); boolean that_present_keys = true && that.is_set_keys(); if (this_present_keys || that_present_keys) { if (!(this_present_keys && that_present_keys)) return false; if (!this.keys.equals(that.keys)) return false; } return true; }
/** * Performs a deep copy on <i>other</i>. */ public getBulk_args(getBulk_args other) { if (other.is_set_domain_name()) { this.domain_name = other.domain_name; } if (other.is_set_keys()) { List<ByteBuffer> __this__keys = new ArrayList<ByteBuffer>(); for (ByteBuffer other_element : other.keys) { ByteBuffer temp_binary_element = org.apache.thrift.TBaseHelper.copyBinary(other_element); ; __this__keys.add(temp_binary_element); } this.keys = __this__keys; } }