/** * Performs a deep copy on <i>other</i>. */ public TServerName(TServerName other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetHostName()) { this.hostName = other.hostName; } this.port = other.port; this.startCode = other.startCode; }
/** 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 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(isSetHostName()).compareTo(other.isSetHostName()); if (lastComparison != 0) { return lastComparison; if (isSetHostName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostName, other.hostName); if (lastComparison != 0) {
return true; 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))
/** * Performs a deep copy on <i>other</i>. */ public TServerName(TServerName other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetHostName()) { this.hostName = other.hostName; } this.port = other.port; this.startCode = other.startCode; }
/** * Performs a deep copy on <i>other</i>. */ public TServerName(TServerName other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetHostName()) { this.hostName = other.hostName; } this.port = other.port; this.startCode = other.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(); }
/** 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(); }
lastComparison = Boolean.valueOf(isSetHostName()).compareTo(other.isSetHostName()); if (lastComparison != 0) { return lastComparison; if (isSetHostName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostName, other.hostName); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetHostName()).compareTo(other.isSetHostName()); if (lastComparison != 0) { return lastComparison; if (isSetHostName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hostName, other.hostName); if (lastComparison != 0) {
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; }