public < T extends ICalProperty > List < T > setProperty ( Class < T > clazz , T property ) { List < ICalProperty > replaced = properties . replace ( clazz , property ) ; return castList ( replaced , clazz ) ; }
Replaces all existing properties of the given class with a single property instance . If the property instance is null then all instances of that property will be removed .