package com.cobalt.cdpipeline.cdresult;

/**
 * 
 */
public class Contributor {
	private String username;
	
	/**
	 * Constructs a Contributor object.
	 * 
	 * @param username of the contributor
	 */
	public Contributor(String username) {
		this.username = username;
	}
	
	/**
	 * Gets the username of this.
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}
	
	// TODO override equals
}

@@ -34,16 +34,43 @@
 esult;%0A%0A
+import java.util.HashSet;%0A%0A
 /**%0A * %0A
@@ -417,30 +417,290 @@
 %0A%09%0A%09
-// TODO override equals
+@Override%0A%09public boolean equals(Object o)%7B%0A%09%09if (o instanceof Contributor)%7B%0A%09%09%09Contributor other = (Contributor) o;%0A%09%09%09if(other.username.equals(this.username))%7B%0A%09%09%09%09return true;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return false;%0A%09%7D%0A%09%0A%09@Override%0A%09public int hashCode()%7B%0A%09%09return this.username.hashCode();%0A%09%7D%0A%09
 %0A%7D%0A

Make Contributors with the same username equals to each other so that they won't be dulplicate in one Set: Add Equals check and make the hashcode of Contributor equals hashcode of Contributor.username