@Test public void testConstructorsWithNullElements() { List<Event> eventsList = new ArrayList<Event>(); eventsList.add(this.event1); eventsList.add(null); eventsList.add(this.event2); eventsList.add(this.event3); this.g = new EventGroup(eventsList); assertEquals(3, this.g.getEvents().size()); Set<Event> eventsSet = new HashSet<Event>(); eventsSet.add(this.event1); eventsSet.add(null); eventsSet.add(this.event2); eventsSet.add(this.event3); this.g = new EventGroup(eventsSet); assertEquals(3, this.g.getEvents().size()); this.g = new EventGroup(this.event1, null, this.event2, null, this.event3); assertEquals(3, this.g.getEvents().size()); }
public Set<Event> getEvents() { Set<Event> clone = new LinkedHashSet<Event>(this.events.size(), 1f); clone.addAll(this.events); return Collections.unmodifiableSet(clone); }
EventGroup { public Set<Event> getEvents() { Set<Event> clone = new LinkedHashSet<Event>(this.events.size(), 1f); clone.addAll(this.events); return Collections.unmodifiableSet(clone); } }
EventGroup { public Set<Event> getEvents() { Set<Event> clone = new LinkedHashSet<Event>(this.events.size(), 1f); clone.addAll(this.events); return Collections.unmodifiableSet(clone); } EventGroup();  EventGroup(List<Event> events);  EventGroup(Set<Event> events);  EventGroup(Event... events); }
EventGroup { public Set<Event> getEvents() { Set<Event> clone = new LinkedHashSet<Event>(this.events.size(), 1f); clone.addAll(this.events); return Collections.unmodifiableSet(clone); } EventGroup();  EventGroup(List<Event> events);  EventGroup(Set<Event> events);  EventGroup(Event... events); Set<Event> getEvents(); void addEvents(Event... events); void clearEvents(); Event getMainEvent(); @Override String toString(); }
EventGroup { public Set<Event> getEvents() { Set<Event> clone = new LinkedHashSet<Event>(this.events.size(), 1f); clone.addAll(this.events); return Collections.unmodifiableSet(clone); } EventGroup();  EventGroup(List<Event> events);  EventGroup(Set<Event> events);  EventGroup(Event... events); Set<Event> getEvents(); void addEvents(Event... events); void clearEvents(); Event getMainEvent(); @Override String toString();  }