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); }
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); }
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 getPhoneIterator() {
1
Iterator getEmailIterator() {
2
		return phoneVector.iterator();
2
		return emailAddressVector.iterator();
3
	}
3
	}
4
	public void addPhone(PhoneModel phoneModel) {
4
	public void add
5
		if (phoneModel
5
Email(IEmailModel emailAddress) {
6
 == null)
6
		if (emailAddress == null)
7
			throw new IllegalArgumentException("phoneModel == null");
7
			throw new IllegalArgumentException("emailModel == null");
8
		phoneVector.add(phoneModel);
8
		emailAddressVector.add(emailAddress);
9
	}
9
	}
10
	public Iterator getInstantMessagingIterator() {
10
	// public 
11
		return instantMessagingVector.iterator();
12
	}
13
	public void addInstantMessaging(InstantMessagingModel instantMessagingModel) {
14
		if (instantMessaging
11
String getAgent() {
12
	// return agent;
13
	// }
14
	public Date getBirthday() {
15
		return birthday;
16
	}
17
	public String getSortString() {
18
		return sortString;
19
	}
20
	public ImageIcon getPhoto() {
21
		return photo;
22
	}
23
	/**
24
	 * @param birthday
25
	 *            The birthday to set.
26
	 */
27
	public void setBirthday(Date birthday) {
28
		this.birthday = birthday;
29
	}
30
	/**
31
	 * @param photo
32
	 *            The photo to set.
33
	 */
34
	public void setPhoto(ImageIcon photo) {
35
		this.photo = photo;
36
	}
37
	/**
38
	 * @param sortString
39
	 *            The sortString to set.
40
	 */
41
	public void setSortString(String sortString) {
42
		this.sortString = sortString;
43
	}
44
	public Iterator getPhoneIterator() {
45
		return phoneVector.iterator();
46
	}
47
	public void addPhone(PhoneModel phoneModel) {
15
Model == null)
48
		if (phoneModel == null)
16
			throw new IllegalArgumentException("instantMessaging == null");
49
			throw new IllegalArgumentException("
17
		instantMessagingVector.add(instantMessaging
50
phoneModel == null");
18
Model);
51
		phoneVector.add(phoneModel);
19
	}
52
	}
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