Code example for Calendar

Methods: compareTo

0
		return DateFormat.format(pattern, datetime).equals(
				DateFormat.format(pattern, date));
	} 
	 
	public boolean occursInDateTime(Calendar datetime) {
		return this.datetime.compareTo(datetime) == 0;
	} 
	 
	public void setSpeaker(String speaker) {
		this.speaker = speaker;
	} 
	 
	// TODO refatorar 
	public void setSpeaker(List<String> speakers) {
		this.speaker = "";
		for (String speaker : speakers) {
			this.speaker = this.speaker.concat(speaker)
						.concat(",");
		} 
		if (this.speaker.length() > 0) {
			this.speaker = this.speaker.substring(0, this.speaker.length() - 1);