code: public List<ICalComponent> setComponent(ICalComponent component) {
  		return components.replace(component.getClass(), component);
  	}
docs: Replaces all sub-components of a given class with the given component.
  @param component the component
  @return the replaced sub-components (this list is immutable)