@Override public String toString() { StringBuilder sb = new StringBuilder("SavedSearchScope("); boolean first = true; if (isSetIncludeAccount()) { sb.append("includeAccount:"); sb.append(this.includeAccount); first = false; } if (isSetIncludePersonalLinkedNotebooks()) { if (!first) sb.append(", "); sb.append("includePersonalLinkedNotebooks:"); sb.append(this.includePersonalLinkedNotebooks); first = false; } if (isSetIncludeBusinessLinkedNotebooks()) { if (!first) sb.append(", "); sb.append("includeBusinessLinkedNotebooks:"); sb.append(this.includeBusinessLinkedNotebooks); first = false; } sb.append(")"); return sb.toString(); }
@Override public String toString() { StringBuilder sb = new StringBuilder("SavedSearchScope("); boolean first = true; if (isSetIncludeAccount()) { sb.append("includeAccount:"); sb.append(this.includeAccount); first = false; } if (isSetIncludePersonalLinkedNotebooks()) { if (!first) sb.append(", "); sb.append("includePersonalLinkedNotebooks:"); sb.append(this.includePersonalLinkedNotebooks); first = false; } if (isSetIncludeBusinessLinkedNotebooks()) { if (!first) sb.append(", "); sb.append("includeBusinessLinkedNotebooks:"); sb.append(this.includeBusinessLinkedNotebooks); first = false; } sb.append(")"); return sb.toString(); }
lastComparison = Boolean.valueOf(isSetIncludeBusinessLinkedNotebooks()).compareTo(typedOther.isSetIncludeBusinessLinkedNotebooks()); if (lastComparison != 0) { return lastComparison; if (isSetIncludeBusinessLinkedNotebooks()) { lastComparison = TBaseHelper.compareTo(this.includeBusinessLinkedNotebooks, typedOther.includeBusinessLinkedNotebooks); if (lastComparison != 0) { return lastComparison;
lastComparison = Boolean.valueOf(isSetIncludeBusinessLinkedNotebooks()).compareTo(typedOther.isSetIncludeBusinessLinkedNotebooks()); if (lastComparison != 0) { return lastComparison; if (isSetIncludeBusinessLinkedNotebooks()) { lastComparison = TBaseHelper.compareTo(this.includeBusinessLinkedNotebooks, typedOther.includeBusinessLinkedNotebooks); if (lastComparison != 0) { return lastComparison;
public boolean equals(SavedSearchScope that) { if (that == null) return false; boolean this_present_includeAccount = true && this.isSetIncludeAccount(); boolean that_present_includeAccount = true && that.isSetIncludeAccount(); if (this_present_includeAccount || that_present_includeAccount) { if (!(this_present_includeAccount && that_present_includeAccount)) return false; if (this.includeAccount != that.includeAccount) return false; } boolean this_present_includePersonalLinkedNotebooks = true && this.isSetIncludePersonalLinkedNotebooks(); boolean that_present_includePersonalLinkedNotebooks = true && that.isSetIncludePersonalLinkedNotebooks(); if (this_present_includePersonalLinkedNotebooks || that_present_includePersonalLinkedNotebooks) { if (!(this_present_includePersonalLinkedNotebooks && that_present_includePersonalLinkedNotebooks)) return false; if (this.includePersonalLinkedNotebooks != that.includePersonalLinkedNotebooks) return false; } boolean this_present_includeBusinessLinkedNotebooks = true && this.isSetIncludeBusinessLinkedNotebooks(); boolean that_present_includeBusinessLinkedNotebooks = true && that.isSetIncludeBusinessLinkedNotebooks(); if (this_present_includeBusinessLinkedNotebooks || that_present_includeBusinessLinkedNotebooks) { if (!(this_present_includeBusinessLinkedNotebooks && that_present_includeBusinessLinkedNotebooks)) return false; if (this.includeBusinessLinkedNotebooks != that.includeBusinessLinkedNotebooks) return false; } return true; }
public boolean equals(SavedSearchScope that) { if (that == null) return false; boolean this_present_includeAccount = true && this.isSetIncludeAccount(); boolean that_present_includeAccount = true && that.isSetIncludeAccount(); if (this_present_includeAccount || that_present_includeAccount) { if (!(this_present_includeAccount && that_present_includeAccount)) return false; if (this.includeAccount != that.includeAccount) return false; } boolean this_present_includePersonalLinkedNotebooks = true && this.isSetIncludePersonalLinkedNotebooks(); boolean that_present_includePersonalLinkedNotebooks = true && that.isSetIncludePersonalLinkedNotebooks(); if (this_present_includePersonalLinkedNotebooks || that_present_includePersonalLinkedNotebooks) { if (!(this_present_includePersonalLinkedNotebooks && that_present_includePersonalLinkedNotebooks)) return false; if (this.includePersonalLinkedNotebooks != that.includePersonalLinkedNotebooks) return false; } boolean this_present_includeBusinessLinkedNotebooks = true && this.isSetIncludeBusinessLinkedNotebooks(); boolean that_present_includeBusinessLinkedNotebooks = true && that.isSetIncludeBusinessLinkedNotebooks(); if (this_present_includeBusinessLinkedNotebooks || that_present_includeBusinessLinkedNotebooks) { if (!(this_present_includeBusinessLinkedNotebooks && that_present_includeBusinessLinkedNotebooks)) return false; if (this.includeBusinessLinkedNotebooks != that.includeBusinessLinkedNotebooks) return false; } return true; }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (isSetIncludeAccount()) { oprot.writeFieldBegin(INCLUDE_ACCOUNT_FIELD_DESC); oprot.writeBool(this.includeAccount); oprot.writeFieldEnd(); } if (isSetIncludePersonalLinkedNotebooks()) { oprot.writeFieldBegin(INCLUDE_PERSONAL_LINKED_NOTEBOOKS_FIELD_DESC); oprot.writeBool(this.includePersonalLinkedNotebooks); oprot.writeFieldEnd(); } if (isSetIncludeBusinessLinkedNotebooks()) { oprot.writeFieldBegin(INCLUDE_BUSINESS_LINKED_NOTEBOOKS_FIELD_DESC); oprot.writeBool(this.includeBusinessLinkedNotebooks); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (isSetIncludeAccount()) { oprot.writeFieldBegin(INCLUDE_ACCOUNT_FIELD_DESC); oprot.writeBool(this.includeAccount); oprot.writeFieldEnd(); } if (isSetIncludePersonalLinkedNotebooks()) { oprot.writeFieldBegin(INCLUDE_PERSONAL_LINKED_NOTEBOOKS_FIELD_DESC); oprot.writeBool(this.includePersonalLinkedNotebooks); oprot.writeFieldEnd(); } if (isSetIncludeBusinessLinkedNotebooks()) { oprot.writeFieldBegin(INCLUDE_BUSINESS_LINKED_NOTEBOOKS_FIELD_DESC); oprot.writeBool(this.includeBusinessLinkedNotebooks); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }