zhiqinghuang / lambdaj

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

Problem with selectDistinct #119

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It seems that there is a problem with the selectDistinct method.
I'm using :
public static <T> Collection<T> selectDistinct(Object iterable,
                               Comparator<T> comparator)

Given a list of 6 elements :
a, b, c, d, e, f  where
a = d
b = e
c = f

the method returns :
a b c and d.

It should returns :
a b and c

It's not a problem with my Comparator implementation because it seems that the 
algorithm never try to compare a and d...

I'm using last release 2.4.

Original issue reported on code.google.com by jeremy.l...@gmail.com on 12 Feb 2015 at 9:36

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
nevermind. Problem with comparator...

Original comment by jeremy.l...@gmail.com on 12 Feb 2015 at 10:18