In Java (maybe using Guava?), is there some method provided to get the difference of two Collections, e.g. a List and a Set without modifying one of these Collections (else there would be collection1.removeAll(collection2)?

In Guava there is Sets.difference(set1,set2), but it only works for Sets, not for arbitrary collections.

Thanks for any hint!

Edit
Report