retain_all


Description:

[ CCode ( ordering = 7 ) ]
public virtual bool retain_all (Collection<G> collection)

Removes all items in this collection that are not contained in the input collection. In other words all common items of both collections are retained in this collection.

Parameters:

collection

the collection which items will be compared with this collection.

Returns:

true if the collection has been changed, false otherwise