contains

open operator override fun contains(element: E): Boolean

Returns true if the set contains the specified element. This operation is synchronized.

Parameters

element

The element whose presence in the set is to be tested.