retainAll
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.
Retains only the transformed elements in the given collection in the underlying set.
true if the underlying set was modified, false otherwise.
A collection of elements of type M.