@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_host = true && (isSetHost()); builder.append(present_host); if (present_host) builder.append(host); boolean present_datacenter = true && (isSetDatacenter()); builder.append(present_datacenter); if (present_datacenter) builder.append(datacenter); boolean present_rack = true && (isSetRack()); builder.append(present_rack); if (present_rack) builder.append(rack); return builder.toHashCode(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, EndpointDetails struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.host != null) { oprot.writeFieldBegin(HOST_FIELD_DESC); oprot.writeString(struct.host); oprot.writeFieldEnd(); } if (struct.datacenter != null) { oprot.writeFieldBegin(DATACENTER_FIELD_DESC); oprot.writeString(struct.datacenter); oprot.writeFieldEnd(); } if (struct.rack != null) { if (struct.isSetRack()) { oprot.writeFieldBegin(RACK_FIELD_DESC); oprot.writeString(struct.rack); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_host = true && (isSetHost()); builder.append(present_host); if (present_host) builder.append(host); boolean present_datacenter = true && (isSetDatacenter()); builder.append(present_datacenter); if (present_datacenter) builder.append(datacenter); boolean present_rack = true && (isSetRack()); builder.append(present_rack); if (present_rack) builder.append(rack); return builder.toHashCode(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_host = true && (isSetHost()); builder.append(present_host); if (present_host) builder.append(host); boolean present_datacenter = true && (isSetDatacenter()); builder.append(present_datacenter); if (present_datacenter) builder.append(datacenter); boolean present_rack = true && (isSetRack()); builder.append(present_rack); if (present_rack) builder.append(rack); return builder.toHashCode(); }
if (isSetRack()) { if (!first) sb.append(", "); sb.append("rack:");
public void write(org.apache.thrift.protocol.TProtocol oprot, EndpointDetails struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.host != null) { oprot.writeFieldBegin(HOST_FIELD_DESC); oprot.writeString(struct.host); oprot.writeFieldEnd(); } if (struct.datacenter != null) { oprot.writeFieldBegin(DATACENTER_FIELD_DESC); oprot.writeString(struct.datacenter); oprot.writeFieldEnd(); } if (struct.rack != null) { if (struct.isSetRack()) { oprot.writeFieldBegin(RACK_FIELD_DESC); oprot.writeString(struct.rack); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, EndpointDetails struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.host != null) { oprot.writeFieldBegin(HOST_FIELD_DESC); oprot.writeString(struct.host); oprot.writeFieldEnd(); } if (struct.datacenter != null) { oprot.writeFieldBegin(DATACENTER_FIELD_DESC); oprot.writeString(struct.datacenter); oprot.writeFieldEnd(); } if (struct.rack != null) { if (struct.isSetRack()) { oprot.writeFieldBegin(RACK_FIELD_DESC); oprot.writeString(struct.rack); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
/** 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 HOST: return isSetHost(); case DATACENTER: return isSetDatacenter(); case RACK: return isSetRack(); } 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 HOST: return isSetHost(); case DATACENTER: return isSetDatacenter(); case RACK: return isSetRack(); } 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 HOST: return isSetHost(); case DATACENTER: return isSetDatacenter(); case RACK: return isSetRack(); } throw new IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public EndpointDetails(EndpointDetails other) { if (other.isSetHost()) { this.host = other.host; } if (other.isSetDatacenter()) { this.datacenter = other.datacenter; } if (other.isSetRack()) { this.rack = other.rack; } }
/** * Performs a deep copy on <i>other</i>. */ public EndpointDetails(EndpointDetails other) { if (other.isSetHost()) { this.host = other.host; } if (other.isSetDatacenter()) { this.datacenter = other.datacenter; } if (other.isSetRack()) { this.rack = other.rack; } }
/** * Performs a deep copy on <i>other</i>. */ public EndpointDetails(EndpointDetails other) { if (other.isSetHost()) { this.host = other.host; } if (other.isSetDatacenter()) { this.datacenter = other.datacenter; } if (other.isSetRack()) { this.rack = other.rack; } }
public boolean equals(EndpointDetails that) { if (that == null) return false; boolean this_present_host = true && this.isSetHost(); boolean that_present_host = true && that.isSetHost(); if (this_present_host || that_present_host) { if (!(this_present_host && that_present_host)) return false; if (!this.host.equals(that.host)) return false; } boolean this_present_datacenter = true && this.isSetDatacenter(); boolean that_present_datacenter = true && that.isSetDatacenter(); if (this_present_datacenter || that_present_datacenter) { if (!(this_present_datacenter && that_present_datacenter)) return false; if (!this.datacenter.equals(that.datacenter)) return false; } boolean this_present_rack = true && this.isSetRack(); boolean that_present_rack = true && that.isSetRack(); if (this_present_rack || that_present_rack) { if (!(this_present_rack && that_present_rack)) return false; if (!this.rack.equals(that.rack)) return false; } return true; }
public boolean equals(EndpointDetails that) { if (that == null) return false; boolean this_present_host = true && this.isSetHost(); boolean that_present_host = true && that.isSetHost(); if (this_present_host || that_present_host) { if (!(this_present_host && that_present_host)) return false; if (!this.host.equals(that.host)) return false; } boolean this_present_datacenter = true && this.isSetDatacenter(); boolean that_present_datacenter = true && that.isSetDatacenter(); if (this_present_datacenter || that_present_datacenter) { if (!(this_present_datacenter && that_present_datacenter)) return false; if (!this.datacenter.equals(that.datacenter)) return false; } boolean this_present_rack = true && this.isSetRack(); boolean that_present_rack = true && that.isSetRack(); if (this_present_rack || that_present_rack) { if (!(this_present_rack && that_present_rack)) return false; if (!this.rack.equals(that.rack)) return false; } return true; }
public boolean equals(EndpointDetails that) { if (that == null) return false; boolean this_present_host = true && this.isSetHost(); boolean that_present_host = true && that.isSetHost(); if (this_present_host || that_present_host) { if (!(this_present_host && that_present_host)) return false; if (!this.host.equals(that.host)) return false; } boolean this_present_datacenter = true && this.isSetDatacenter(); boolean that_present_datacenter = true && that.isSetDatacenter(); if (this_present_datacenter || that_present_datacenter) { if (!(this_present_datacenter && that_present_datacenter)) return false; if (!this.datacenter.equals(that.datacenter)) return false; } boolean this_present_rack = true && this.isSetRack(); boolean that_present_rack = true && that.isSetRack(); if (this_present_rack || that_present_rack) { if (!(this_present_rack && that_present_rack)) return false; if (!this.rack.equals(that.rack)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, EndpointDetails struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetHost()) { optionals.set(0); } if (struct.isSetDatacenter()) { optionals.set(1); } if (struct.isSetRack()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetHost()) { oprot.writeString(struct.host); } if (struct.isSetDatacenter()) { oprot.writeString(struct.datacenter); } if (struct.isSetRack()) { oprot.writeString(struct.rack); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, EndpointDetails struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetHost()) { optionals.set(0); } if (struct.isSetDatacenter()) { optionals.set(1); } if (struct.isSetRack()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetHost()) { oprot.writeString(struct.host); } if (struct.isSetDatacenter()) { oprot.writeString(struct.datacenter); } if (struct.isSetRack()) { oprot.writeString(struct.rack); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, EndpointDetails struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetHost()) { optionals.set(0); } if (struct.isSetDatacenter()) { optionals.set(1); } if (struct.isSetRack()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetHost()) { oprot.writeString(struct.host); } if (struct.isSetDatacenter()) { oprot.writeString(struct.datacenter); } if (struct.isSetRack()) { oprot.writeString(struct.rack); } }