Java中ArrayList HashSet的使用 以及HashCode的用处(二)

2014-11-24 14:51:21 · 作者: · 浏览: 96
;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
MyTest other = (MyTest) obj;
if (x != other.x)
return false;
if (y != other.y)
return false;
return true;
}
}