Package java.util
Interface Collection

Public Method retainAll

abstract boolean retainAll(Collection c)

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Retains only the elements in this collection that are contained in the specified collection (optional operation).

In other words, removes from this collection all of its elements that are not contained in the specified collection.