add

open override fun add(element: E): Boolean

Adds the specified element to the set if it is not already present. This operation is synchronized.

Return

true if the set did not already contain the specified element.

Parameters

element

The element to be added to the set.