/** * Performs a deep copy on <i>other</i>. */ public BusinessNotebook(BusinessNotebook other) { System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length); if (other.isSetNotebookDescription()) { this.notebookDescription = other.notebookDescription; } if (other.isSetPrivilege()) { this.privilege = other.privilege; } this.recommended = other.recommended; }
/** * Performs a deep copy on <i>other</i>. */ public BusinessNotebook(BusinessNotebook other) { System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length); if (other.isSetNotebookDescription()) { this.notebookDescription = other.notebookDescription; } if (other.isSetPrivilege()) { this.privilege = other.privilege; } this.recommended = other.recommended; }
boolean first = true; if (isSetNotebookDescription()) { sb.append("notebookDescription:"); if (this.notebookDescription == null) {
boolean first = true; if (isSetNotebookDescription()) { sb.append("notebookDescription:"); if (this.notebookDescription == null) {
BusinessNotebook typedOther = (BusinessNotebook)other; lastComparison = Boolean.valueOf(isSetNotebookDescription()).compareTo(typedOther.isSetNotebookDescription()); if (lastComparison != 0) { return lastComparison; if (isSetNotebookDescription()) { lastComparison = TBaseHelper.compareTo(this.notebookDescription, typedOther.notebookDescription); if (lastComparison != 0) { return lastComparison;
BusinessNotebook typedOther = (BusinessNotebook)other; lastComparison = Boolean.valueOf(isSetNotebookDescription()).compareTo(typedOther.isSetNotebookDescription()); if (lastComparison != 0) { return lastComparison; if (isSetNotebookDescription()) { lastComparison = TBaseHelper.compareTo(this.notebookDescription, typedOther.notebookDescription); 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(); }