重写equals时还必须重写hashcode方法,详解
http://www.cnblogs.com/happyPawpaw/p/3744971.html
http://www.jb51.net/article/42408.htm
http://blog.chinaunix.net/uid-26602509-id-3355659.html
1.public boolean equals(Object obj),和has
转载
2018-01-15 19:18:39 ·
263 阅读 ·
0 评论