Package java.util
Interface List

Public Method retainAll

abstract boolean retainAll(Collection c)

_INSERT_METHOD_SIGNATURE_HERE_

Description:

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

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