Method retainAll(Collection> c)
Return type: boolean
Member of:
java.util.Collection
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
commandIdsByName.values().retainAll(commandIds);
2
contextIdsByName.values().retainAll(contextIds);
3
c.retainAll((Collection)b);
4
collection.retainAll(null);
5
collection.retainAll(Collections.EMPTY_SET));
6
toRemove.retainAll (createdByMe);
7
assertTrue(!m.values().retainAll(c1));
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.