contains for TreeSet (original) (raw)
David Holmes david.holmes at oracle.com
Wed Jun 18 01:39:20 UTC 2014
- Previous message: RFR JDK-5077522 : Duration.compare incorrect for some values
- Next message: contains for TreeSet
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Moving your question to core-libs-dev, please drop build-dev from all future responses.
David
On 18/06/2014 10:56 AM, Su wrote:
May I ask why "contains" method of TreeSet uses the comparator to decide if two objects are equals, but not the equals method of the object?
Thank you.
- Previous message: RFR JDK-5077522 : Duration.compare incorrect for some values
- Next message: contains for TreeSet
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]