/** * Performs a deep copy on <i>other</i>. */ public RecoveryStatus(RecoveryStatus other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetName()) { this.name = other.name; } this.runtime = other.runtime; this.progress = other.progress; }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetName()) ? 131071 : 524287); if (isSetName()) hashCode = hashCode * 8191 + name.hashCode(); hashCode = hashCode * 8191 + runtime; hashCode = hashCode * 8191 + org.apache.thrift.TBaseHelper.hashCode(progress); 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 NAME: return isSetName(); case RUNTIME: return isSetRuntime(); case PROGRESS: return isSetProgress(); } throw new java.lang.IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, RecoveryStatus 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.isSetName()) { optionals.set(0); } if (struct.isSetRuntime()) { optionals.set(1); } if (struct.isSetProgress()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetName()) { oprot.writeString(struct.name); } if (struct.isSetRuntime()) { oprot.writeI32(struct.runtime); } if (struct.isSetProgress()) { oprot.writeDouble(struct.progress); } }
/** * Performs a deep copy on <i>other</i>. */ public RecoveryStatus(RecoveryStatus other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetName()) { this.name = other.name; } this.runtime = other.runtime; this.progress = other.progress; }
public boolean equals(RecoveryStatus that) { if (that == null) return false; boolean this_present_name = true && this.isSetName(); boolean that_present_name = true && that.isSetName(); if (this_present_name || that_present_name) { if (!(this_present_name && that_present_name)) return false; if (!this.name.equals(that.name)) return false; } boolean this_present_runtime = true; boolean that_present_runtime = true; if (this_present_runtime || that_present_runtime) { if (!(this_present_runtime && that_present_runtime)) return false; if (this.runtime != that.runtime) return false; } boolean this_present_progress = true; boolean that_present_progress = true; if (this_present_progress || that_present_progress) { if (!(this_present_progress && that_present_progress)) return false; if (this.progress != that.progress) return false; } return true; }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_name = true && (isSetName()); list.add(present_name); if (present_name) list.add(name); boolean present_runtime = true; list.add(present_runtime); if (present_runtime) list.add(runtime); boolean present_progress = true; list.add(present_progress); if (present_progress) list.add(progress); 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 NAME: return isSetName(); case RUNTIME: return isSetRuntime(); case PROGRESS: return isSetProgress(); } throw new IllegalStateException(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, RecoveryStatus struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetName()) { optionals.set(0); } if (struct.isSetRuntime()) { optionals.set(1); } if (struct.isSetProgress()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetName()) { oprot.writeString(struct.name); } if (struct.isSetRuntime()) { oprot.writeI32(struct.runtime); } if (struct.isSetProgress()) { oprot.writeDouble(struct.progress); } }