Checks if the set contains the specified element.
This method checks if the set contains the specified element in a thread-safe approach.
Return
true
if the element is found in the set, false
otherwise.
Parameters
The element to check for containment.