add

fun add(item: T)

Adds an item to the observable set. If the item does not already exist in the set, it will be added, and observers of the set will be notified of the change.

Parameters

item

The item to be added to the set.