remove

fun remove(item: T): Boolean

Removes the specified item from the observable set. If the item exists in the set, it will be removed, and observers of the set will be notified of the change.

Return

true if the set contained the specified item

Parameters

item

The item to be removed from the set.