public int compareTo(TPermissionsUpdate other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; TPermissionsUpdate typedOther = (TPermissionsUpdate) other; lastComparison = Boolean.valueOf(isSetHasfullImage()).compareTo(typedOther.isSetHasfullImage()); if (lastComparison != 0) { return lastComparison; } if (isSetHasfullImage()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hasfullImage, typedOther.hasfullImage); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetSeqNum()).compareTo(typedOther.isSetSeqNum()); if (lastComparison != 0) { return lastComparison; } if (isSetSeqNum()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.seqNum, typedOther.seqNum); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetPrivilegeChanges()).compareTo(typedOther.isSetPrivilegeChanges()); if (lastComparison != 0) { return lastComparison; } if (isSetPrivilegeChanges()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo( this.privilegeChanges, typedOther.privilegeChanges); if (lastComparison != 0) { return lastComparison; } } lastComparison = Boolean.valueOf(isSetRoleChanges()).compareTo(typedOther.isSetRoleChanges()); if (lastComparison != 0) { return lastComparison; } if (isSetRoleChanges()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleChanges, typedOther.roleChanges); if (lastComparison != 0) { return lastComparison; } } return 0; }