/** 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 java.lang.IllegalArgumentException(); } switch (field) { case HOST_NAME: return isSetHostName(); case PORT: return isSetPort(); case START_CODE: return isSetStartCode(); } throw new java.lang.IllegalStateException(); }
@Override public java.lang.String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder("TServerName("); boolean first = true; sb.append("hostName:"); if (this.hostName == null) { sb.append("null"); } else { sb.append(this.hostName); } first = false; if (isSetPort()) { if (!first) sb.append(", "); sb.append("port:"); sb.append(this.port); first = false; } if (isSetStartCode()) { if (!first) sb.append(", "); sb.append("startCode:"); sb.append(this.startCode); first = false; } sb.append(")"); return sb.toString(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TServerName struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.hostName != null) { oprot.writeFieldBegin(HOST_NAME_FIELD_DESC); oprot.writeString(struct.hostName); oprot.writeFieldEnd(); } if (struct.isSetPort()) { oprot.writeFieldBegin(PORT_FIELD_DESC); oprot.writeI32(struct.port); oprot.writeFieldEnd(); } if (struct.isSetStartCode()) { oprot.writeFieldBegin(START_CODE_FIELD_DESC); oprot.writeI64(struct.startCode); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetHostName()) ? 131071 : 524287); if (isSetHostName()) hashCode = hashCode * 8191 + hostName.hashCode(); hashCode = hashCode * 8191 + ((isSetPort()) ? 131071 : 524287); if (isSetPort()) hashCode = hashCode * 8191 + port; hashCode = hashCode * 8191 + ((isSetStartCode()) ? 131071 : 524287); if (isSetStartCode()) hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(startCode); return hashCode; }
lastComparison = java.lang.Boolean.valueOf(isSetStartCode()).compareTo(other.isSetStartCode()); if (lastComparison != 0) { return lastComparison; if (isSetStartCode()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startCode, other.startCode); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TServerName struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; oprot.writeString(struct.hostName); java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetPort()) { optionals.set(0); } if (struct.isSetStartCode()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetPort()) { oprot.writeI32(struct.port); } if (struct.isSetStartCode()) { oprot.writeI64(struct.startCode); } }
boolean this_present_startCode = true && this.isSetStartCode(); boolean that_present_startCode = true && that.isSetStartCode(); if (this_present_startCode || that_present_startCode) { if (!(this_present_startCode && that_present_startCode))
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_hostName = true && (isSetHostName()); list.add(present_hostName); if (present_hostName) list.add(hostName); boolean present_port = true && (isSetPort()); list.add(present_port); if (present_port) list.add(port); boolean present_startCode = true && (isSetStartCode()); list.add(present_startCode); if (present_startCode) list.add(startCode); return list.hashCode(); }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_hostName = true && (isSetHostName()); list.add(present_hostName); if (present_hostName) list.add(hostName); boolean present_port = true && (isSetPort()); list.add(present_port); if (present_port) list.add(port); boolean present_startCode = true && (isSetStartCode()); list.add(present_startCode); if (present_startCode) list.add(startCode); return list.hashCode(); }
/** 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_NAME: return isSetHostName(); case PORT: return isSetPort(); case START_CODE: return isSetStartCode(); } throw new IllegalStateException(); }
@Override public String toString() { StringBuilder sb = new StringBuilder("TServerName("); boolean first = true; sb.append("hostName:"); if (this.hostName == null) { sb.append("null"); } else { sb.append(this.hostName); } first = false; if (isSetPort()) { if (!first) sb.append(", "); sb.append("port:"); sb.append(this.port); first = false; } if (isSetStartCode()) { if (!first) sb.append(", "); sb.append("startCode:"); sb.append(this.startCode); first = false; } sb.append(")"); return sb.toString(); }
@Override public String toString() { StringBuilder sb = new StringBuilder("TServerName("); boolean first = true; sb.append("hostName:"); if (this.hostName == null) { sb.append("null"); } else { sb.append(this.hostName); } first = false; if (isSetPort()) { if (!first) sb.append(", "); sb.append("port:"); sb.append(this.port); first = false; } if (isSetStartCode()) { if (!first) sb.append(", "); sb.append("startCode:"); sb.append(this.startCode); first = false; } sb.append(")"); return sb.toString(); }
/** 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_NAME: return isSetHostName(); case PORT: return isSetPort(); case START_CODE: return isSetStartCode(); } throw new IllegalStateException(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TServerName struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.hostName != null) { oprot.writeFieldBegin(HOST_NAME_FIELD_DESC); oprot.writeString(struct.hostName); oprot.writeFieldEnd(); } if (struct.isSetPort()) { oprot.writeFieldBegin(PORT_FIELD_DESC); oprot.writeI32(struct.port); oprot.writeFieldEnd(); } if (struct.isSetStartCode()) { oprot.writeFieldBegin(START_CODE_FIELD_DESC); oprot.writeI64(struct.startCode); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TServerName struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.hostName != null) { oprot.writeFieldBegin(HOST_NAME_FIELD_DESC); oprot.writeString(struct.hostName); oprot.writeFieldEnd(); } if (struct.isSetPort()) { oprot.writeFieldBegin(PORT_FIELD_DESC); oprot.writeI32(struct.port); oprot.writeFieldEnd(); } if (struct.isSetStartCode()) { oprot.writeFieldBegin(START_CODE_FIELD_DESC); oprot.writeI64(struct.startCode); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
lastComparison = Boolean.valueOf(isSetStartCode()).compareTo(other.isSetStartCode()); if (lastComparison != 0) { return lastComparison; if (isSetStartCode()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startCode, other.startCode); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TServerName struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.hostName); BitSet optionals = new BitSet(); if (struct.isSetPort()) { optionals.set(0); } if (struct.isSetStartCode()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetPort()) { oprot.writeI32(struct.port); } if (struct.isSetStartCode()) { oprot.writeI64(struct.startCode); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TServerName struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.hostName); BitSet optionals = new BitSet(); if (struct.isSetPort()) { optionals.set(0); } if (struct.isSetStartCode()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetPort()) { oprot.writeI32(struct.port); } if (struct.isSetStartCode()) { oprot.writeI64(struct.startCode); } }
public boolean equals(TServerName that) { if (that == null) return false; boolean this_present_hostName = true && this.isSetHostName(); boolean that_present_hostName = true && that.isSetHostName(); if (this_present_hostName || that_present_hostName) { if (!(this_present_hostName && that_present_hostName)) return false; if (!this.hostName.equals(that.hostName)) return false; } boolean this_present_port = true && this.isSetPort(); boolean that_present_port = true && that.isSetPort(); 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_startCode = true && this.isSetStartCode(); boolean that_present_startCode = true && that.isSetStartCode(); if (this_present_startCode || that_present_startCode) { if (!(this_present_startCode && that_present_startCode)) return false; if (this.startCode != that.startCode) return false; } return true; }
public boolean equals(TServerName that) { if (that == null) return false; boolean this_present_hostName = true && this.isSetHostName(); boolean that_present_hostName = true && that.isSetHostName(); if (this_present_hostName || that_present_hostName) { if (!(this_present_hostName && that_present_hostName)) return false; if (!this.hostName.equals(that.hostName)) return false; } boolean this_present_port = true && this.isSetPort(); boolean that_present_port = true && that.isSetPort(); 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_startCode = true && this.isSetStartCode(); boolean that_present_startCode = true && that.isSetStartCode(); if (this_present_startCode || that_present_startCode) { if (!(this_present_startCode && that_present_startCode)) return false; if (this.startCode != that.startCode) return false; } return true; }