/** * Performs a deep copy on <i>other</i>. */ public Endpoint(Endpoint other) { __isset_bitfield = other.__isset_bitfield; this.ipv4 = other.ipv4; this.port = other.port; if (other.isSetService_name()) { this.service_name = other.service_name; } }
/** * Performs a deep copy on <i>other</i>. */ public Endpoint(Endpoint other) { __isset_bitfield = other.__isset_bitfield; this.ipv4 = other.ipv4; this.port = other.port; if (other.isSetService_name()) { this.service_name = other.service_name; } }
/** * Performs a deep copy on <i>other</i>. */ public Endpoint(Endpoint other) { __isset_bitfield = other.__isset_bitfield; this.ipv4 = other.ipv4; this.port = other.port; if (other.isSetService_name()) { this.service_name = other.service_name; } }
public boolean equals(Endpoint that) { if (that == null) return false; boolean this_present_ipv4 = true; boolean that_present_ipv4 = true; if (this_present_ipv4 || that_present_ipv4) { if (!(this_present_ipv4 && that_present_ipv4)) return false; if (this.ipv4 != that.ipv4) return false; } boolean this_present_port = true; boolean that_present_port = true; if (this_present_port || that_present_port) { if (!(this_present_port && that_present_port)) return false; if (this.port != that.port) return false; } boolean this_present_service_name = true && this.isSetService_name(); boolean that_present_service_name = true && that.isSetService_name(); if (this_present_service_name || that_present_service_name) { if (!(this_present_service_name && that_present_service_name)) return false; if (!this.service_name.equals(that.service_name)) return false; } return true; }
public boolean equals(Endpoint that) { if (that == null) return false; boolean this_present_ipv4 = true; boolean that_present_ipv4 = true; if (this_present_ipv4 || that_present_ipv4) { if (!(this_present_ipv4 && that_present_ipv4)) return false; if (this.ipv4 != that.ipv4) return false; } boolean this_present_port = true; boolean that_present_port = true; if (this_present_port || that_present_port) { if (!(this_present_port && that_present_port)) return false; if (this.port != that.port) return false; } boolean this_present_service_name = true && this.isSetService_name(); boolean that_present_service_name = true && that.isSetService_name(); if (this_present_service_name || that_present_service_name) { if (!(this_present_service_name && that_present_service_name)) return false; if (!this.service_name.equals(that.service_name)) return false; } return true; }
public boolean equals(Endpoint that) { if (that == null) return false; boolean this_present_ipv4 = true; boolean that_present_ipv4 = true; if (this_present_ipv4 || that_present_ipv4) { if (!(this_present_ipv4 && that_present_ipv4)) return false; if (this.ipv4 != that.ipv4) return false; } boolean this_present_port = true; boolean that_present_port = true; if (this_present_port || that_present_port) { if (!(this_present_port && that_present_port)) return false; if (this.port != that.port) return false; } boolean this_present_service_name = true && this.isSetService_name(); boolean that_present_service_name = true && that.isSetService_name(); if (this_present_service_name || that_present_service_name) { if (!(this_present_service_name && that_present_service_name)) return false; if (!this.service_name.equals(that.service_name)) 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 IPV4: return isSetIpv4(); case PORT: return isSetPort(); case SERVICE_NAME: return isSetService_name(); } 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 IPV4: return isSetIpv4(); case PORT: return isSetPort(); case SERVICE_NAME: return isSetService_name(); } 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 IPV4: return isSetIpv4(); case PORT: return isSetPort(); case SERVICE_NAME: return isSetService_name(); } throw new IllegalStateException(); }
lastComparison = Boolean.valueOf(isSetService_name()).compareTo(typedOther.isSetService_name()); if (lastComparison != 0) { return lastComparison; if (isSetService_name()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.service_name, typedOther.service_name); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetService_name()).compareTo(typedOther.isSetService_name()); if (lastComparison != 0) { return lastComparison; if (isSetService_name()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.service_name, typedOther.service_name); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetService_name()).compareTo(typedOther.isSetService_name()); if (lastComparison != 0) { return lastComparison; if (isSetService_name()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.service_name, typedOther.service_name); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Endpoint struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetIpv4()) { optionals.set(0); } if (struct.isSetPort()) { optionals.set(1); } if (struct.isSetService_name()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetIpv4()) { oprot.writeI32(struct.ipv4); } if (struct.isSetPort()) { oprot.writeI16(struct.port); } if (struct.isSetService_name()) { oprot.writeString(struct.service_name); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Endpoint struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetIpv4()) { optionals.set(0); } if (struct.isSetPort()) { optionals.set(1); } if (struct.isSetService_name()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetIpv4()) { oprot.writeI32(struct.ipv4); } if (struct.isSetPort()) { oprot.writeI16(struct.port); } if (struct.isSetService_name()) { oprot.writeString(struct.service_name); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, Endpoint struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetIpv4()) { optionals.set(0); } if (struct.isSetPort()) { optionals.set(1); } if (struct.isSetService_name()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetIpv4()) { oprot.writeI32(struct.ipv4); } if (struct.isSetPort()) { oprot.writeI16(struct.port); } if (struct.isSetService_name()) { oprot.writeString(struct.service_name); } }