add

open override fun add(element: E): Boolean(source)

Adds the specified object to this set. The set is not modified if it already contains the object.

Return

true if this set is modified, false otherwise.

Parameters

element

the object to add.

Throws

ConcurrentModificationException

if concurrent modifications detected.