yogendra-aurospaces / google-collections

Automatically exported from code.google.com/p/google-collections
Apache License 2.0
0 stars 0 forks source link

SetDifference #185

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It's the same as MapDifference but for collections.
The entriesDiffering method would not be needed.

One could consider having a separate SetDifference and ListDifference
(where the order would be important) - but that could also be a parameter in

Collections2.difference(left, right, boolean useIterationOrder)

Original issue reported on code.google.com by zeitlin...@gmail.com on 10 Jun 2009 at 7:37

GoogleCodeExporter commented 9 years ago
This isn't exactly what you're asking for, but I wanted to make sure you know 
about
Sets.difference(), which creates a view of the set-theoretic difference between 
two
sets (all elements that are in A but not in B).

Original comment by kevin...@gmail.com on 10 Jun 2009 at 3:46

GoogleCodeExporter commented 9 years ago
Yes, I had checked that out. The only drawback is that I would have to call this
function twice

Original comment by zeitlin...@gmail.com on 11 Jun 2009 at 7:33

GoogleCodeExporter commented 9 years ago
For a ListDifference to be useful it would have to implement a full-on diff 
algorithm.  
A better first step would be for us to create just SetDifference. I'm not 
totally sure 
of its importance, but the need for it may grow. Keeping this open.

Original comment by kevin...@gmail.com on 17 Sep 2009 at 5:19

GoogleCodeExporter commented 9 years ago

Original comment by kevin...@gmail.com on 17 Sep 2009 at 5:45

GoogleCodeExporter commented 9 years ago

Original comment by kevin...@gmail.com on 17 Sep 2009 at 5:57

GoogleCodeExporter commented 9 years ago
This issue has been moved to the Guava project (keeping the same id number). 
Simply replace 'google-collections' with 'guava-libraries' in your address 
bar and it should take you there.

Original comment by kevinb@google.com on 5 Jan 2010 at 11:09