public NotebookDescriptor deepCopy() { return new NotebookDescriptor(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof NotebookDescriptor) return this.equals((NotebookDescriptor)that); return false; }
/** * Performs a deep copy on <i>other</i>. */ public NotebookDescriptor(NotebookDescriptor other) { System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length); if (other.isSetGuid()) { this.guid = other.guid; } if (other.isSetNotebookDisplayName()) { this.notebookDisplayName = other.notebookDisplayName; } if (other.isSetContactName()) { this.contactName = other.contactName; } this.hasSharedNotebook = other.hasSharedNotebook; this.joinedUserCount = other.joinedUserCount; }
public void clear() { this.guid = null; this.notebookDisplayName = null; this.contactName = null; setHasSharedNotebookIsSet(false); this.hasSharedNotebook = false; setJoinedUserCountIsSet(false); this.joinedUserCount = 0; }
return false; boolean this_present_guid = true && this.isSetGuid(); boolean that_present_guid = true && that.isSetGuid(); if (this_present_guid || that_present_guid) { if (!(this_present_guid && that_present_guid)) boolean this_present_notebookDisplayName = true && this.isSetNotebookDisplayName(); boolean that_present_notebookDisplayName = true && that.isSetNotebookDisplayName(); if (this_present_notebookDisplayName || that_present_notebookDisplayName) { if (!(this_present_notebookDisplayName && that_present_notebookDisplayName)) boolean this_present_contactName = true && this.isSetContactName(); boolean that_present_contactName = true && that.isSetContactName(); if (this_present_contactName || that_present_contactName) { if (!(this_present_contactName && that_present_contactName)) boolean this_present_hasSharedNotebook = true && this.isSetHasSharedNotebook(); boolean that_present_hasSharedNotebook = true && that.isSetHasSharedNotebook(); if (this_present_hasSharedNotebook || that_present_hasSharedNotebook) { if (!(this_present_hasSharedNotebook && that_present_hasSharedNotebook)) boolean this_present_joinedUserCount = true && this.isSetJoinedUserCount(); boolean that_present_joinedUserCount = true && that.isSetJoinedUserCount(); if (this_present_joinedUserCount || that_present_joinedUserCount) { if (!(this_present_joinedUserCount && that_present_joinedUserCount))
if (field.type == TType.BOOL) { this.hasSharedNotebook = iprot.readBool(); setHasSharedNotebookIsSet(true); } else { TProtocolUtil.skip(iprot, field.type); if (field.type == TType.I32) { this.joinedUserCount = iprot.readI32(); setJoinedUserCountIsSet(true); } else { TProtocolUtil.skip(iprot, field.type); validate();
_elem105 = new com.evernote.edam.type.NotebookDescriptor(); _elem105.read(iprot); this.containingNotebooks.add(_elem105);
public void setHasSharedNotebook(boolean hasSharedNotebook) { this.hasSharedNotebook = hasSharedNotebook; setHasSharedNotebookIsSet(true); }
public void setJoinedUserCount(int joinedUserCount) { this.joinedUserCount = joinedUserCount; setJoinedUserCountIsSet(true); }
return false; boolean this_present_guid = true && this.isSetGuid(); boolean that_present_guid = true && that.isSetGuid(); if (this_present_guid || that_present_guid) { if (!(this_present_guid && that_present_guid)) boolean this_present_notebookDisplayName = true && this.isSetNotebookDisplayName(); boolean that_present_notebookDisplayName = true && that.isSetNotebookDisplayName(); if (this_present_notebookDisplayName || that_present_notebookDisplayName) { if (!(this_present_notebookDisplayName && that_present_notebookDisplayName)) boolean this_present_contactName = true && this.isSetContactName(); boolean that_present_contactName = true && that.isSetContactName(); if (this_present_contactName || that_present_contactName) { if (!(this_present_contactName && that_present_contactName)) boolean this_present_hasSharedNotebook = true && this.isSetHasSharedNotebook(); boolean that_present_hasSharedNotebook = true && that.isSetHasSharedNotebook(); if (this_present_hasSharedNotebook || that_present_hasSharedNotebook) { if (!(this_present_hasSharedNotebook && that_present_hasSharedNotebook)) boolean this_present_joinedUserCount = true && this.isSetJoinedUserCount(); boolean that_present_joinedUserCount = true && that.isSetJoinedUserCount(); if (this_present_joinedUserCount || that_present_joinedUserCount) { if (!(this_present_joinedUserCount && that_present_joinedUserCount))
if (field.type == TType.BOOL) { this.hasSharedNotebook = iprot.readBool(); setHasSharedNotebookIsSet(true); } else { TProtocolUtil.skip(iprot, field.type); if (field.type == TType.I32) { this.joinedUserCount = iprot.readI32(); setJoinedUserCountIsSet(true); } else { TProtocolUtil.skip(iprot, field.type); validate();
public void clear() { this.guid = null; this.notebookDisplayName = null; this.contactName = null; setHasSharedNotebookIsSet(false); this.hasSharedNotebook = false; setJoinedUserCountIsSet(false); this.joinedUserCount = 0; }
_elem105 = new com.evernote.edam.type.NotebookDescriptor(); _elem105.read(iprot); this.containingNotebooks.add(_elem105);
public void setHasSharedNotebook(boolean hasSharedNotebook) { this.hasSharedNotebook = hasSharedNotebook; setHasSharedNotebookIsSet(true); }
public void setJoinedUserCount(int joinedUserCount) { this.joinedUserCount = joinedUserCount; setJoinedUserCountIsSet(true); }
lastComparison = Boolean.valueOf(isSetGuid()).compareTo(typedOther.isSetGuid()); if (lastComparison != 0) { return lastComparison; if (isSetGuid()) { lastComparison = TBaseHelper.compareTo(this.guid, typedOther.guid); if (lastComparison != 0) { return lastComparison; lastComparison = Boolean.valueOf(isSetNotebookDisplayName()).compareTo(typedOther.isSetNotebookDisplayName()); if (lastComparison != 0) { return lastComparison; if (isSetNotebookDisplayName()) { lastComparison = TBaseHelper.compareTo(this.notebookDisplayName, typedOther.notebookDisplayName); if (lastComparison != 0) { return lastComparison; lastComparison = Boolean.valueOf(isSetContactName()).compareTo(typedOther.isSetContactName()); if (lastComparison != 0) { return lastComparison; if (isSetContactName()) { lastComparison = TBaseHelper.compareTo(this.contactName, typedOther.contactName); if (lastComparison != 0) { return lastComparison; lastComparison = Boolean.valueOf(isSetHasSharedNotebook()).compareTo(typedOther.isSetHasSharedNotebook()); if (lastComparison != 0) { return lastComparison; if (isSetHasSharedNotebook()) { lastComparison = TBaseHelper.compareTo(this.hasSharedNotebook, typedOther.hasSharedNotebook);
/** * Performs a deep copy on <i>other</i>. */ public NotebookDescriptor(NotebookDescriptor other) { System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length); if (other.isSetGuid()) { this.guid = other.guid; } if (other.isSetNotebookDisplayName()) { this.notebookDisplayName = other.notebookDisplayName; } if (other.isSetContactName()) { this.contactName = other.contactName; } this.hasSharedNotebook = other.hasSharedNotebook; this.joinedUserCount = other.joinedUserCount; }
public NotebookDescriptor deepCopy() { return new NotebookDescriptor(this); }
@Override public boolean equals(Object that) { if (that == null) return false; if (that instanceof NotebookDescriptor) return this.equals((NotebookDescriptor)that); return false; }
boolean first = true; if (isSetGuid()) { sb.append("guid:"); if (this.guid == null) { if (isSetNotebookDisplayName()) { if (!first) sb.append(", "); sb.append("notebookDisplayName:"); if (isSetContactName()) { if (!first) sb.append(", "); sb.append("contactName:"); if (isSetHasSharedNotebook()) { if (!first) sb.append(", "); sb.append("hasSharedNotebook:"); first = false; if (isSetJoinedUserCount()) { if (!first) sb.append(", "); sb.append("joinedUserCount:");