lishunli / projectlombok

Automatically exported from code.google.com/p/projectlombok
0 stars 0 forks source link

Collection Comparision issue #564

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am comparing Set/list received from Hibernate with the manually created 
set/list, however they fail to match though contents are same..

This is because of public boolean canEqual(final Object other)
    {
    return other instanceof ListSet;
    }

ListSet is my custom collection made of ArrayList and implementing Set.

Is there a way to Overcome this..i.e may be I need to say that it is check 
against Set interface rather than class name.

Original issue reported on code.google.com by nagendra...@gmail.com on 23 Aug 2013 at 12:50

GoogleCodeExporter commented 9 years ago
I don't understand the question, but a possible answer is: you can write your 
own canEqual method, and lombok will then use that one.

Still it is a question and not a bug report. Please use the mailing list ( 
https://groups.google.com/forum/#!forum/project-lombok ) for questions and to 
discuss possible feature requests.

Original comment by r.spilker on 23 Jan 2014 at 7:10