contains

open operator override fun contains(element: T): Boolean(source)

Checks whether an element equal to element belongs to this set.

Uses generic equality and hashing. Also supports element in set syntax.

Return

true if an equal element is present.

Parameters

element

value to search for, including null for nullable element types.