contains for TreeSet

Su standbyme946 at gmail.com
Wed Jun 18 00:56:14 UTC 2014


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.



More information about the build-dev mailing list