/** Performs a deep copy on <i>other</i>. */ public NoteList(NoteList other) { System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length); this.startIndex = other.startIndex; this.totalNotes = other.totalNotes; if (other.isSetNotes()) { List<com.evernote.edam.type.Note> __this__notes = new ArrayList<com.evernote.edam.type.Note>(); for (com.evernote.edam.type.Note other_element : other.notes) { __this__notes.add(new com.evernote.edam.type.Note(other_element)); } this.notes = __this__notes; } if (other.isSetStoppedWords()) { List<String> __this__stoppedWords = new ArrayList<String>(); for (String other_element : other.stoppedWords) { __this__stoppedWords.add(other_element); } this.stoppedWords = __this__stoppedWords; } if (other.isSetSearchedWords()) { List<String> __this__searchedWords = new ArrayList<String>(); for (String other_element : other.searchedWords) { __this__searchedWords.add(other_element); } this.searchedWords = __this__searchedWords; } this.updateCount = other.updateCount; }
/** Performs a deep copy on <i>other</i>. */ public NoteAttributes(NoteAttributes other) { System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length); this.subjectDate = other.subjectDate; this.latitude = other.latitude; this.longitude = other.longitude; this.altitude = other.altitude; if (other.isSetAuthor()) { this.author = other.author; } if (other.isSetSource()) { this.source = other.source; } if (other.isSetSourceURL()) { this.sourceURL = other.sourceURL; } if (other.isSetSourceApplication()) { this.sourceApplication = other.sourceApplication; } this.shareDate = other.shareDate; if (other.isSetPlaceName()) { this.placeName = other.placeName; } if (other.isSetContentClass()) { this.contentClass = other.contentClass; } if (other.isSetApplicationData()) { this.applicationData = new LazyMap(other.applicationData); } if (other.isSetLastEditedBy()) { this.lastEditedBy = other.lastEditedBy; } if (other.isSetClassifications()) { Map<String, String> __this__classifications = new HashMap<String, String>(); for (Map.Entry<String, String> other_element : other.classifications.entrySet()) { String other_element_key = other_element.getKey(); String other_element_value = other_element.getValue(); String __this__classifications_copy_key = other_element_key; String __this__classifications_copy_value = other_element_value; __this__classifications.put( __this__classifications_copy_key, __this__classifications_copy_value); } this.classifications = __this__classifications; } }
/** Performs a deep copy on <i>other</i>. */ public SavedSearch(SavedSearch other) { System.arraycopy(other.__isset_vector, 0, __isset_vector, 0, other.__isset_vector.length); if (other.isSetGuid()) { this.guid = other.guid; } if (other.isSetName()) { this.name = other.name; } if (other.isSetQuery()) { this.query = other.query; } if (other.isSetFormat()) { this.format = other.format; } this.updateSequenceNum = other.updateSequenceNum; if (other.isSetScope()) { this.scope = new SavedSearchScope(other.scope); } }