public List<ICalComponent> setComponent(ICalComponent component) {
		return components.replace(component.getClass(), component);
	}
public List < ICalComponent > setComponent ( ICalComponent component ) { return components . replace ( component . getClass ( ) , component ) ; }
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)