@Override public int compareTo(PushResult other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = Boolean.valueOf(isSetCode()).compareTo(other.isSetCode()); if (lastComparison != 0) { return lastComparison; } if (isSetCode()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.code, other.code); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetDesc()).compareTo(other.isSetDesc()); if (lastComparison != 0) { return lastComparison; } if (isSetDesc()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.desc, other.desc); if (lastComparison != 0) { return lastComparison; } } return 0; }
/** Performs a deep copy on <i>other</i>. */ public PushResult(PushResult other) { __isset_bitfield = other.__isset_bitfield; this.code = other.code; if (other.isSetDesc()) { this.desc = other.desc; } }
public boolean equals(PushResult that) { if (that == null) return false; boolean this_present_code = true; boolean that_present_code = true; if (this_present_code || that_present_code) { if (!(this_present_code && that_present_code)) return false; if (this.code != that.code) return false; } boolean this_present_desc = true && this.isSetDesc(); boolean that_present_desc = true && that.isSetDesc(); if (this_present_desc || that_present_desc) { if (!(this_present_desc && that_present_desc)) return false; if (!this.desc.equals(that.desc)) return false; } return true; }