public List < ICalComponent > setComponent ( ICalComponent component ) { return components . replace ( component . getClass ( ) , component ) ; }
Replaces all sub - components of a given class with the given component .