Get started

retainingAll

Returns a new persistent collection with elements in this collection that are also contained in the specified elements collection, or this instance if no modifications were made in the result of this operation.