@Override public int compareTo(InvalidJob other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetWhat()).compareTo(other.isSetWhat()); if (lastComparison != 0) { return lastComparison; } if (isSetWhat()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.what, other.what); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetWhy()).compareTo(other.isSetWhy()); if (lastComparison != 0) { return lastComparison; } if (isSetWhy()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.why, other.why); if (lastComparison != 0) { return lastComparison; } } return 0; }
/** Performs a deep copy on <i>other</i>. */ public InvalidJob(InvalidJob other) { __isset_bitfield = other.__isset_bitfield; this.what = other.what; if (other.isSetWhy()) { this.why = other.why; } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, InvalidJob struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetWhat()) { optionals.set(0); } if (struct.isSetWhy()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetWhat()) { oprot.writeI32(struct.what); } if (struct.isSetWhy()) { oprot.writeString(struct.why); } }
public boolean equals(InvalidJob that) { if (that == null) return false; boolean this_present_what = true; boolean that_present_what = true; if (this_present_what || that_present_what) { if (!(this_present_what && that_present_what)) return false; if (this.what != that.what) return false; } boolean this_present_why = true && this.isSetWhy(); boolean that_present_why = true && that.isSetWhy(); if (this_present_why || that_present_why) { if (!(this_present_why && that_present_why)) return false; if (!this.why.equals(that.why)) return false; } return true; }