addAll

open override fun addAll(elements: Collection<E>): Boolean

Adds all of the elements in the specified collection to this set.

Return

true if this set changed as a result of the call

Parameters

elements

collection containing elements to be added to this set

Throws

if the elements provided cannot be compared with the elements currently in the set

if the specified collection is null or if any element is null and this set uses natural ordering, or its comparator does not permit null elements