public BusinessNotebook deepCopy() { return new BusinessNotebook(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof BusinessNotebook) return this.equals((BusinessNotebook)that); return false; }
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; }
/** * 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; }
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(); }
if (field.type == TType.BOOL) { this.recommended = iprot.readBool(); setRecommendedIsSet(true); } else { TProtocolUtil.skip(iprot, field.type); validate();
case 15: // BUSINESS_NOTEBOOK if (field.type == TType.STRUCT) { this.businessNotebook = new BusinessNotebook(); this.businessNotebook.read(iprot); } else { TProtocolUtil.skip(iprot, field.type);
public void clear() { this.notebookDescription = null; this.privilege = null; setRecommendedIsSet(false); this.recommended = false; }
if (isSetBusinessNotebook()) { oprot.writeFieldBegin(BUSINESS_NOTEBOOK_FIELD_DESC); this.businessNotebook.write(oprot); oprot.writeFieldEnd();
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(); }
/** * 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; }
if (field.type == TType.BOOL) { this.recommended = iprot.readBool(); setRecommendedIsSet(true); } else { TProtocolUtil.skip(iprot, field.type); validate();
case 15: // BUSINESS_NOTEBOOK if (field.type == TType.STRUCT) { this.businessNotebook = new BusinessNotebook(); this.businessNotebook.read(iprot); } else { TProtocolUtil.skip(iprot, field.type);
public void clear() { this.notebookDescription = null; this.privilege = null; setRecommendedIsSet(false); this.recommended = false; }
if (isSetBusinessNotebook()) { oprot.writeFieldBegin(BUSINESS_NOTEBOOK_FIELD_DESC); this.businessNotebook.write(oprot); oprot.writeFieldEnd();
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; }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof BusinessNotebook) return this.equals((BusinessNotebook)that); return false; }
public void setRecommended(boolean recommended) { this.recommended = recommended; setRecommendedIsSet(true); }
public BusinessNotebook deepCopy() { return new BusinessNotebook(this); }
boolean first = true; if (isSetNotebookDescription()) { sb.append("notebookDescription:"); if (this.notebookDescription == null) { if (isSetPrivilege()) { if (!first) sb.append(", "); sb.append("privilege:"); if (isSetRecommended()) { if (!first) sb.append(", "); sb.append("recommended:");