Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,16 @@ public String getEnd() {
* Gets the events that occur on the specified day of the month.
*
* @param day day of the month whose events will be returned
* @return a collection of assembled events for the specified day. will be <code>null</code> if no
* events have been set or events occur on the specified day
* @return a collection of assembled events for the specified day, never empty. Will be <code>
* null</code> if no events have been set or no events occur on the specified day.
*/
public Collection<IPSAssemblyResult> getEvents(int day) {
if (getModel().m_eventsByDay == null) {
return null;
} else {
return (Collection<IPSAssemblyResult>) getModel().m_eventsByDay.get(day);
}
Collection<IPSAssemblyResult> events =
(Collection<IPSAssemblyResult>) getModel().m_eventsByDay.get(day);
return (events == null || events.isEmpty()) ? null : events;
}

/**
Expand Down
Loading