2013年9月20日星期五

invoke the java contains equals method , equals is a container own equals method , if the container has no equals method , it is necessary to write their own , are not you ?

invoke the java contains equals method , equals equals method of the container themselves do ? If the container has no equals method , it is necessary to write their own , are not you ? , Write your own this is not replicated it !
------ Solution ---------------------------------------- ----
is the object that you want contains equals method
------ Solution ----------------------- ---------------------
upstairs positive solution, if the object does not override the equals method , then call the parent class inherits the equals method

没有评论:

发表评论