retainAll

open override fun retainAll(elements: Collection<M?>): Boolean

Retains only the transformed elements in the given collection in the underlying set.

Return

true if the underlying set was modified, false otherwise.

Parameters

elements

A collection of elements of type M.