if (isSetRecommended()) { if (!first) sb.append(", "); sb.append("recommended:");
if (isSetRecommended()) { if (!first) sb.append(", "); sb.append("recommended:");
lastComparison = Boolean.valueOf(isSetRecommended()).compareTo(typedOther.isSetRecommended()); if (lastComparison != 0) { return lastComparison; if (isSetRecommended()) { lastComparison = TBaseHelper.compareTo(this.recommended, typedOther.recommended); if (lastComparison != 0) { return lastComparison;
lastComparison = Boolean.valueOf(isSetRecommended()).compareTo(typedOther.isSetRecommended()); if (lastComparison != 0) { return lastComparison; if (isSetRecommended()) { lastComparison = TBaseHelper.compareTo(this.recommended, typedOther.recommended); if (lastComparison != 0) { return lastComparison;
public boolean equals(BusinessNotebook that) { if (that == null) return false; boolean this_present_notebookDescription = true && this.isSetNotebookDescription(); boolean that_present_notebookDescription = true && that.isSetNotebookDescription(); if (this_present_notebookDescription || that_present_notebookDescription) { if (!(this_present_notebookDescription && that_present_notebookDescription)) return false; if (!this.notebookDescription.equals(that.notebookDescription)) return false; } boolean this_present_privilege = true && this.isSetPrivilege(); boolean that_present_privilege = true && that.isSetPrivilege(); if (this_present_privilege || that_present_privilege) { if (!(this_present_privilege && that_present_privilege)) return false; if (!this.privilege.equals(that.privilege)) return false; } boolean this_present_recommended = true && this.isSetRecommended(); boolean that_present_recommended = true && that.isSetRecommended(); if (this_present_recommended || that_present_recommended) { if (!(this_present_recommended && that_present_recommended)) return false; if (this.recommended != that.recommended) return false; } return true; }
public boolean equals(BusinessNotebook that) { if (that == null) return false; boolean this_present_notebookDescription = true && this.isSetNotebookDescription(); boolean that_present_notebookDescription = true && that.isSetNotebookDescription(); if (this_present_notebookDescription || that_present_notebookDescription) { if (!(this_present_notebookDescription && that_present_notebookDescription)) return false; if (!this.notebookDescription.equals(that.notebookDescription)) return false; } boolean this_present_privilege = true && this.isSetPrivilege(); boolean that_present_privilege = true && that.isSetPrivilege(); if (this_present_privilege || that_present_privilege) { if (!(this_present_privilege && that_present_privilege)) return false; if (!this.privilege.equals(that.privilege)) return false; } boolean this_present_recommended = true && this.isSetRecommended(); boolean that_present_recommended = true && that.isSetRecommended(); if (this_present_recommended || that_present_recommended) { if (!(this_present_recommended && that_present_recommended)) return false; if (this.recommended != that.recommended) return false; } return true; }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.notebookDescription != null) { if (isSetNotebookDescription()) { oprot.writeFieldBegin(NOTEBOOK_DESCRIPTION_FIELD_DESC); oprot.writeString(this.notebookDescription); oprot.writeFieldEnd(); } } if (this.privilege != null) { if (isSetPrivilege()) { oprot.writeFieldBegin(PRIVILEGE_FIELD_DESC); oprot.writeI32(this.privilege.getValue()); oprot.writeFieldEnd(); } } if (isSetRecommended()) { oprot.writeFieldBegin(RECOMMENDED_FIELD_DESC); oprot.writeBool(this.recommended); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.notebookDescription != null) { if (isSetNotebookDescription()) { oprot.writeFieldBegin(NOTEBOOK_DESCRIPTION_FIELD_DESC); oprot.writeString(this.notebookDescription); oprot.writeFieldEnd(); } } if (this.privilege != null) { if (isSetPrivilege()) { oprot.writeFieldBegin(PRIVILEGE_FIELD_DESC); oprot.writeI32(this.privilege.getValue()); oprot.writeFieldEnd(); } } if (isSetRecommended()) { oprot.writeFieldBegin(RECOMMENDED_FIELD_DESC); oprot.writeBool(this.recommended); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }