public < T extends ICalComponent > List < T > removeComponents ( Class < T > clazz ) { List < ICalComponent > removed = components . removeAll ( clazz ) ; return castList ( removed , clazz ) ; }
Removes all sub - components of the given class from this component .