Iterator getEmailIterator() { return emailAddressVector.iterator(); } public void addEmail(IEmailModel emailAddress) { if (emailAddress == null) throw new IllegalArgumentException("emailModel == null"); emailAddressVector.add(emailAddress); } // public String getAgent() { // return agent; // } public Date getBirthday() { return birthday; } public String getSortString() { return sortString; } public ImageIcon getPhoto() { return photo; } /** * @param birthday * The birthday to set. */ public void setBirthday(Date birthday) { this.birthday = birthday; } /** * @param photo * The photo to set. */ public void setPhoto(ImageIcon photo) { this.photo = photo; } /** * @param sortString * The sortString to set. */ public void setSortString(String sortString) { this.sortString = sortString; } public Iterator getPhoneIterator() { return phoneVector.iterator(); } public void addPhone(PhoneModel phoneModel) { if (phoneModel == null) throw new IllegalArgumentException("phoneModel == null"); phoneVector.add(phoneModel);
Iterator getPhoneIterator() { return phoneVector.iterator(); } public void addPhone(PhoneModel phoneModel) { if (phoneModel == null) throw new IllegalArgumentException("phoneModel == null"); phoneVector.add(phoneModel); } public Iterator getInstantMessagingIterator() { return instantMessagingVector.iterator(); } public void addInstantMessaging(InstantMessagingModel instantMessagingModel) { if (instantMessagingModel == null) throw new IllegalArgumentException("instantMessaging == null"); instantMessagingVector.add(instantMessagingModel);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/model/ContactModel.java File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/model/ContactModel.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
Iterator getEmailIterator() {
1
Iterator getPhoneIterator() {
2
		return emailAddressVector.iterator();
2
		return phoneVector.iterator();
3
	}
3
	}
4
	public void addEmail(IEmailModel emailAddress) {
4
	public void add
5
		if (emailAddress
5
Phone(PhoneModel phoneModel) {
6
 == null)
6
		if (phoneModel == null)
7
			throw new IllegalArgumentException("emailModel == null");
7
			throw new IllegalArgumentException("phoneModel == null");
8
		emailAddressVector.add(emailAddress);
8
		phoneVector.add(phoneModel);
9
	}
9
	}
10
	// public String getAgent() {
10
	public 
11
	// return agent;
12
	// }
13
	public Date getBirthday() {
14
		return birthday;
15
	}
16
	public String getSortString() {
17
		return sortString;
18
	}
19
	public ImageIcon getPhoto() {
20
		return photo;
21
	}
22
	/**
23
	 * @param birthday
24
	 *            The birthday to set.
25
	 */
26
	public void setBirthday(Date birthday) {
27
		this.birthday = birthday;
28
	}
29
	/**
30
	 * @param photo
31
	 *            The photo to set.
32
	 */
33
	public void setPhoto(ImageIcon photo) {
34
		this.photo = photo;
35
	}
36
	/**
37
	 * @param sortString
38
	 *            The sortString to set.
39
	 */
40
	public void setSortString(String sortString) {
41
		this.sortString = sortString;
42
	}
43
	public Iterator getPhoneIterator() {
44
		return phoneVector.iterator();
45
	}
46
	public void addPhone(PhoneModel phoneModel) {
47
		if (phone
11
Iterator getInstantMessagingIterator() {
12
		return instantMessagingVector.iterator();
13
	}
14
	public void addInstantMessaging(InstantMessagingModel instantMessagingModel) {
48
Model == null)
15
		if (instantMessagingModel == null)
49
			throw new IllegalArgumentException("phoneModel == null");
16
			throw new IllegalArgumentException("
50
		phoneVector.add(phone
17
instantMessaging == null");
51
Model);
18
		instantMessagingVector.add(instantMessagingModel);
52
	
19
	
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0