摘要: java语言规范要求equals的特性:1)自反性:对于任何非空引用x,x.equals(x)应返还true。2)对称性:对于任何x,y,x.equals(y)与y.equals(x) 返回值相同。3)传递性:对于任何引用x,y,z,若x.equals(y),y.equals(z)则x.equals... 阅读全文
posted @ 2014-04-22 20:41 weian404 阅读(303) 评论(0) 推荐(0) 编辑