Created
October 10, 2014 08:37
-
-
Save jbaruch/91ca8dec03def0fbb78a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package conference; | |
import java.util.HashSet; | |
import java.util.Set; | |
/** | |
* Created by Jeka on 07/10/2014. | |
*/ | |
public class Speaker { | |
private Long speakerId; | |
private String name; | |
private Set<Talk> talks; | |
public Speaker() { | |
} | |
public Speaker(String name) { | |
this.name = name; | |
} | |
public void addTalk(Talk talk) { | |
if(talks==null) talks = new HashSet<Talk>(); | |
talks.add(talk); | |
} | |
public String getName() { | |
return name; | |
} | |
public Set<Talk> getTalks() { | |
return talks; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment