Code example for HashSet

0
public class Employee { 
	private Long id; 
	private Person person; 
	private Date hireDate; 
	private OptionalComponent optionalComponent; 
	private Set directReports = new HashSet(); 
 
	public Long getId() { 
		return id; 
	} 
 
	public void setId(Long id) { 
		this.id = id; 
	} 
 
	public Person getPerson() { 
		return person; 
	} 
 
	public void setPerson(Person person) { 
		this.person = person;