/** * Performs a deep copy on <i>other</i>. */ public DeadServer(DeadServer other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetServer()) { this.server = other.server; } this.lastStatus = other.lastStatus; if (other.isSetStatus()) { this.status = other.status; } }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetServer()) ? 131071 : 524287); if (isSetServer()) hashCode = hashCode * 8191 + server.hashCode(); hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(lastStatus); hashCode = hashCode * 8191 + ((isSetStatus()) ? 131071 : 524287); if (isSetStatus()) hashCode = hashCode * 8191 + status.hashCode(); return 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 java.lang.IllegalArgumentException(); } switch (field) { case SERVER: return isSetServer(); case LAST_STATUS: return isSetLastStatus(); case STATUS: return isSetStatus(); } throw new java.lang.IllegalStateException(); }
return true; boolean this_present_server = true && this.isSetServer(); boolean that_present_server = true && that.isSetServer(); if (this_present_server || that_present_server) { if (!(this_present_server && that_present_server))
lastComparison = java.lang.Boolean.valueOf(isSetServer()).compareTo(other.isSetServer()); if (lastComparison != 0) { return lastComparison; if (isSetServer()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.server, other.server); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, DeadServer struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.isSetServer()) { optionals.set(0); } if (struct.isSetLastStatus()) { optionals.set(1); } if (struct.isSetStatus()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetServer()) { oprot.writeString(struct.server); } if (struct.isSetLastStatus()) { oprot.writeI64(struct.lastStatus); } if (struct.isSetStatus()) { oprot.writeString(struct.status); } }
/** * Performs a deep copy on <i>other</i>. */ public DeadServer(DeadServer other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetServer()) { this.server = other.server; } this.lastStatus = other.lastStatus; if (other.isSetStatus()) { this.status = other.status; } }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_server = true && (isSetServer()); list.add(present_server); if (present_server) list.add(server); boolean present_lastStatus = true; list.add(present_lastStatus); if (present_lastStatus) list.add(lastStatus); boolean present_status = true && (isSetStatus()); list.add(present_status); if (present_status) list.add(status); 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 SERVER: return isSetServer(); case LAST_STATUS: return isSetLastStatus(); case STATUS: return isSetStatus(); } throw new IllegalStateException(); }
public boolean equals(DeadServer that) { if (that == null) return false; boolean this_present_server = true && this.isSetServer(); boolean that_present_server = true && that.isSetServer(); if (this_present_server || that_present_server) { if (!(this_present_server && that_present_server)) return false; if (!this.server.equals(that.server)) return false; } boolean this_present_lastStatus = true; boolean that_present_lastStatus = true; if (this_present_lastStatus || that_present_lastStatus) { if (!(this_present_lastStatus && that_present_lastStatus)) return false; if (this.lastStatus != that.lastStatus) return false; } boolean this_present_status = true && this.isSetStatus(); boolean that_present_status = true && that.isSetStatus(); if (this_present_status || that_present_status) { if (!(this_present_status && that_present_status)) return false; if (!this.status.equals(that.status)) return false; } return true; }
lastComparison = Boolean.valueOf(isSetServer()).compareTo(other.isSetServer()); if (lastComparison != 0) { return lastComparison; if (isSetServer()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.server, other.server); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, DeadServer struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetServer()) { optionals.set(0); } if (struct.isSetLastStatus()) { optionals.set(1); } if (struct.isSetStatus()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetServer()) { oprot.writeString(struct.server); } if (struct.isSetLastStatus()) { oprot.writeI64(struct.lastStatus); } if (struct.isSetStatus()) { oprot.writeString(struct.status); } }