Skip to content

Instantly share code, notes, and snippets.

@jbaruch
Created October 10, 2014 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbaruch/91ca8dec03def0fbb78a to your computer and use it in GitHub Desktop.
Save jbaruch/91ca8dec03def0fbb78a to your computer and use it in GitHub Desktop.
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