remove

open override fun remove(element: E): Boolean

Removes the specified element from the set if it is present. This operation is synchronized.

Return

true if the set contained the specified element.

Parameters

element

The element to be removed from the set.